From ee83d1c8fd963d16206920296d547f43d31a44ec Mon Sep 17 00:00:00 2001 From: dece Date: Sun, 9 Jan 2022 22:02:12 +0100 Subject: [PATCH] MainActivity: fix toolbar stuck hidden --- .../main/java/dev/lowrespalmtree/comet/MainActivity.kt | 1 + app/src/main/res/layout/activity_main.xml | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/dev/lowrespalmtree/comet/MainActivity.kt b/app/src/main/java/dev/lowrespalmtree/comet/MainActivity.kt index 9eea353..5e3a3a6 100644 --- a/app/src/main/java/dev/lowrespalmtree/comet/MainActivity.kt +++ b/app/src/main/java/dev/lowrespalmtree/comet/MainActivity.kt @@ -103,6 +103,7 @@ class MainActivity : AppCompatActivity(), ContentAdapter.ContentAdapterListen { binding.contentProgressBar.show() } PageViewModel.State.RECEIVING -> { + binding.appBar.setExpanded(true, true) binding.contentSwipeLayout.isRefreshing = false } } diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index b83413e..d36c1a3 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -11,12 +11,12 @@ android:layout_width="match_parent" android:layout_height="56dp"> - - +