MainActivity: fix toolbar stuck hidden

This commit is contained in:
dece 2022-01-09 22:02:12 +01:00
parent 2debc6d9f6
commit ee83d1c8fd
2 changed files with 5 additions and 4 deletions

View file

@ -103,6 +103,7 @@ class MainActivity : AppCompatActivity(), ContentAdapter.ContentAdapterListen {
binding.contentProgressBar.show()
}
PageViewModel.State.RECEIVING -> {
binding.appBar.setExpanded(true, true)
binding.contentSwipeLayout.isRefreshing = false
}
}

View file

@ -11,12 +11,12 @@
android:layout_width="match_parent"
android:layout_height="56dp">
<com.google.android.material.appbar.CollapsingToolbarLayout
android:id="@+id/collapsing_toolbar"
<Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:contentScrim="?attr/colorPrimary"
app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed"
app:layout_scrollFlags="scroll|enterAlways"
app:toolbarId="@+id/toolbar">
<EditText
@ -31,7 +31,7 @@
android:text=""
tools:ignore="TextContrastCheck" />
</com.google.android.material.appbar.CollapsingToolbarLayout>
</Toolbar>
</com.google.android.material.appbar.AppBarLayout>