瀏覽代碼

Hide filter FAB when opened (closes #3024)

arkon 4 年之前
父節點
當前提交
23a8e31791

+ 4 - 0
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()
     }