mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 12:01:52 +01:00
Fix source filter FAB disappear on rotation (fixes #4994)
This commit is contained in:
parent
b453be081e
commit
8d58a8d548
@ -129,9 +129,6 @@ open class BrowseSourceController(bundle: Bundle) :
|
|||||||
override fun onViewCreated(view: View) {
|
override fun onViewCreated(view: View) {
|
||||||
super.onViewCreated(view)
|
super.onViewCreated(view)
|
||||||
|
|
||||||
// Prepare filter sheet
|
|
||||||
initFilterSheet()
|
|
||||||
|
|
||||||
// Initialize adapter, scroll listener and recycler views
|
// Initialize adapter, scroll listener and recycler views
|
||||||
adapter = FlexibleAdapter(null, this)
|
adapter = FlexibleAdapter(null, this)
|
||||||
setupRecycler(view)
|
setupRecycler(view)
|
||||||
@ -173,11 +170,12 @@ open class BrowseSourceController(bundle: Bundle) :
|
|||||||
override fun configureFab(fab: ExtendedFloatingActionButton) {
|
override fun configureFab(fab: ExtendedFloatingActionButton) {
|
||||||
actionFab = fab
|
actionFab = fab
|
||||||
|
|
||||||
// Controlled by initFilterSheet()
|
|
||||||
fab.isVisible = false
|
|
||||||
|
|
||||||
fab.setText(R.string.action_filter)
|
fab.setText(R.string.action_filter)
|
||||||
fab.setIconResource(R.drawable.ic_filter_list_24dp)
|
fab.setIconResource(R.drawable.ic_filter_list_24dp)
|
||||||
|
|
||||||
|
// Controlled by initFilterSheet()
|
||||||
|
fab.isVisible = false
|
||||||
|
initFilterSheet()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun cleanupFab(fab: ExtendedFloatingActionButton) {
|
override fun cleanupFab(fab: ExtendedFloatingActionButton) {
|
||||||
|
Loading…
Reference in New Issue
Block a user