From 8d58a8d548e57da9255ee3f4bc3d9246de892872 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 2 May 2021 13:34:53 -0400 Subject: [PATCH] Fix source filter FAB disappear on rotation (fixes #4994) --- .../ui/browse/source/browse/BrowseSourceController.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceController.kt index 1d62694151..a821874693 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceController.kt @@ -129,9 +129,6 @@ open class BrowseSourceController(bundle: Bundle) : override fun onViewCreated(view: View) { super.onViewCreated(view) - // Prepare filter sheet - initFilterSheet() - // Initialize adapter, scroll listener and recycler views adapter = FlexibleAdapter(null, this) setupRecycler(view) @@ -173,11 +170,12 @@ open class BrowseSourceController(bundle: Bundle) : override fun configureFab(fab: ExtendedFloatingActionButton) { actionFab = fab - // Controlled by initFilterSheet() - fab.isVisible = false - fab.setText(R.string.action_filter) fab.setIconResource(R.drawable.ic_filter_list_24dp) + + // Controlled by initFilterSheet() + fab.isVisible = false + initFilterSheet() } override fun cleanupFab(fab: ExtendedFloatingActionButton) {