From fd73a7d9418107d003544765302d263224b05084 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Sun, 18 Apr 2021 01:53:46 -0400 Subject: [PATCH] More tracepot fixes --- .../java/eu/kanade/tachiyomi/ui/recents/RecentsController.kt | 1 + .../main/java/eu/kanade/tachiyomi/ui/source/BrowseController.kt | 1 + 2 files changed, 2 insertions(+) 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() }