ui: fix toolbar state not persisting
Fix an issue where the collapsing toolbar would not preserve it's state when navigating. Apparently you need to add an ID to a view to get it's state to be restored. There is no warning for this at all. Android, everyone.
This commit is contained in:
parent
e914da4bd1
commit
543a3ebffb
2 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
||||||
<org.oxycblt.auxio.ui.EdgeCoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<org.oxycblt.auxio.ui.EdgeCoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:id="@+id/home_layout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
android:hint="@string/hint_search_library"
|
android:hint="@string/hint_search_library"
|
||||||
android:imeOptions="actionSearch|flagNoExtractUi"
|
android:imeOptions="actionSearch|flagNoExtractUi"
|
||||||
android:inputType="textFilter"
|
android:inputType="textFilter"
|
||||||
android:paddingStart="0dp"
|
android:paddingStart="@dimen/spacing_tiny"
|
||||||
android:paddingEnd="0dp"/>
|
android:paddingEnd="0dp"/>
|
||||||
|
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
Loading…
Reference in a new issue