From 6d6c38ecafc076098c98d0e12b0fbc7cf1c538e4 Mon Sep 17 00:00:00 2001 From: Andreas Date: Fri, 19 Aug 2022 22:02:12 +0200 Subject: [PATCH] Fix nav bar appearing when going from Library's action mode (#7821) fixes #7788 --- .../java/eu/kanade/tachiyomi/ui/library/LibraryController.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt index 4edd4eb9b..988b75c6c 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt @@ -67,7 +67,10 @@ class LibraryController( ) LaunchedEffect(presenter.selectionMode) { val activity = (activity as? MainActivity) ?: return@LaunchedEffect - activity.showBottomNav(presenter.selectionMode.not()) + // Could perhaps be removed when navigation is in a Compose world + if (router.backstackSize == 1) { + activity.showBottomNav(presenter.selectionMode.not()) + } } LaunchedEffect(presenter.isLoading) { if (presenter.isLoading.not()) {