From b3069b191e92927369d42d465316341b926efe51 Mon Sep 17 00:00:00 2001 From: Jay Date: Sat, 23 May 2020 15:29:29 -0400 Subject: [PATCH] Fix appbar not showing sometimes when tapping the mini category bar --- .../eu/kanade/tachiyomi/ui/library/LibraryController.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt index a6d8ba49e6..f729a0aa2d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt @@ -804,7 +804,11 @@ class LibraryController( recycler_cover.isFocusable = show val full = category_recycler.height.toFloat() + recycler.paddingTop val translateY = if (show) full else 0f - recycler.animate().translationY(translateY).start() + recycler.animate().translationY(translateY).apply { + setUpdateListener { + activity?.appbar?.y = 0f + } + }.start() category_hopper_frame.animate().translationY(translateY).start() recycler_shadow.animate().translationY(translateY - 8.dpToPx).start() recycler_cover.animate().translationY(translateY).start()