diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueController.kt index 40ba5cd54a..01c0e8f7d1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueController.kt @@ -53,6 +53,7 @@ class CatalogueController : NucleusController(), FlexibleAdapter.OnItemClickListener, CatalogueAdapter.OnBrowseClickListener, RootSearchInterface, + CatalogueAdapter.OnLatestClickListener { /** @@ -163,6 +164,14 @@ class CatalogueController : NucleusController(), } + 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)