Fix nav bar appearing when going from Library's action mode (#7821)
fixes #7788 (cherry picked from commit 6d6c38ecafc076098c98d0e12b0fbc7cf1c538e4)
This commit is contained in:
parent
556432eb0d
commit
bf0ba54a6d
1 changed files with 4 additions and 1 deletions
|
|
@ -146,7 +146,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()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue