Fix source filter FAB disappear on rotation (fixes #4994)

(cherry picked from commit 8d58a8d548e57da9255ee3f4bc3d9246de892872)
This commit is contained in:
arkon 2021-05-02 13:34:53 -04:00 committed by Jobobby04
parent 635dd0cda5
commit 8c2de86b16

View File

@ -164,9 +164,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)
@ -316,11 +313,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) {