mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-26 23:28:58 +03:00
Fix nav bar appearing when going from Library's action mode (#7821)
fixes #7788
This commit is contained in:
parent
3760b310df
commit
6d6c38ecaf
1 changed files with 4 additions and 1 deletions
|
@ -67,8 +67,11 @@ class LibraryController(
|
||||||
)
|
)
|
||||||
LaunchedEffect(presenter.selectionMode) {
|
LaunchedEffect(presenter.selectionMode) {
|
||||||
val activity = (activity as? MainActivity) ?: return@LaunchedEffect
|
val activity = (activity as? MainActivity) ?: return@LaunchedEffect
|
||||||
|
// Could perhaps be removed when navigation is in a Compose world
|
||||||
|
if (router.backstackSize == 1) {
|
||||||
activity.showBottomNav(presenter.selectionMode.not())
|
activity.showBottomNav(presenter.selectionMode.not())
|
||||||
}
|
}
|
||||||
|
}
|
||||||
LaunchedEffect(presenter.isLoading) {
|
LaunchedEffect(presenter.isLoading) {
|
||||||
if (presenter.isLoading.not()) {
|
if (presenter.isLoading.not()) {
|
||||||
(activity as? MainActivity)?.ready = true
|
(activity as? MainActivity)?.ready = true
|
||||||
|
|
Loading…
Reference in a new issue