mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 21:25:06 +01:00
Back button now closes extensions sheet
This commit is contained in:
parent
f2a45e5b53
commit
ee471b919c
@ -53,6 +53,7 @@ class CatalogueController : NucleusController<CataloguePresenter>(),
|
||||
FlexibleAdapter.OnItemClickListener,
|
||||
CatalogueAdapter.OnBrowseClickListener,
|
||||
RootSearchInterface,
|
||||
|
||||
CatalogueAdapter.OnLatestClickListener {
|
||||
|
||||
/**
|
||||
@ -163,6 +164,14 @@ class CatalogueController : NucleusController<CataloguePresenter>(),
|
||||
|
||||
}
|
||||
|
||||
override fun handleRootBack(): Boolean {
|
||||
if (ext_bottom_sheet.sheetBehavior?.state != BottomSheetBehavior.STATE_COLLAPSED) {
|
||||
ext_bottom_sheet.sheetBehavior?.state = BottomSheetBehavior.STATE_COLLAPSED
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
override fun onDestroyView(view: View) {
|
||||
adapter = null
|
||||
super.onDestroyView(view)
|
||||
|
Loading…
Reference in New Issue
Block a user