diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentsController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentsController.kt index f398d90505..07f4916d98 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentsController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentsController.kt @@ -627,6 +627,7 @@ class RecentsController(bundle: Bundle? = null) : fun hasQueue() = presenter.downloadManager.hasQueue() override fun showSheet() { + if (!isBindingInitialized) return if (binding.downloadBottomSheet.dlBottomSheet.sheetBehavior?.isHideable == false || hasQueue()) { binding.downloadBottomSheet.dlBottomSheet.sheetBehavior?.expand() } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/source/BrowseController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/source/BrowseController.kt index 4fb36febfd..c1561c611a 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/source/BrowseController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/source/BrowseController.kt @@ -305,6 +305,7 @@ class BrowseController : } override fun showSheet() { + if (!isBindingInitialized) return binding.bottomSheet.root.sheetBehavior?.expand() }