From 23a8e317914bf500e17d6ee979a98683045918e1 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 2 May 2020 10:22:28 -0400 Subject: [PATCH] Hide filter FAB when opened (closes #3024) --- .../ui/browse/source/browse/BrowseSourceController.kt | 4 ++++ 1 file changed, 4 insertions(+) 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 85c360b95..bc0b6ede5 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 @@ -152,6 +152,10 @@ open class BrowseSourceController(bundle: Bundle) : ) filterSheet?.setFilters(presenter.filterItems) + // TODO: [ExtendedFloatingActionButton] hide/show methods don't work properly + filterSheet?.setOnShowListener { binding.fabFilter.gone() } + filterSheet?.setOnDismissListener { binding.fabFilter.visible() } + binding.fabFilter.setOnClickListener { filterSheet?.show() } binding.fabFilter.visible() }