From 0cdf8fd7791ec37154e461f790901f0f7a639b0d Mon Sep 17 00:00:00 2001 From: Hy4ri Date: Fri, 19 Jun 2026 18:31:37 +0300 Subject: [PATCH] fix(navigation): show bottom bar on all screens except ConnectScreen --- app/src/main/java/com/m57/hermescontrol/Navigation.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/m57/hermescontrol/Navigation.kt b/app/src/main/java/com/m57/hermescontrol/Navigation.kt index 82870c8c..647d807d 100644 --- a/app/src/main/java/com/m57/hermescontrol/Navigation.kt +++ b/app/src/main/java/com/m57/hermescontrol/Navigation.kt @@ -193,7 +193,7 @@ fun MainNavigation() { NavigationController.updatePrimaryScreens(bottomNavKeys) } - val isPrimaryScreen = currentScreen in bottomNavKeys + val showBottomBar = currentScreen != ConnectScreen val gesturesEnabled = currentScreen in DRAWER_GESTURE_SCREENS val openDrawer = { scope.launch { drawerState.open() } } @@ -293,7 +293,7 @@ fun MainNavigation() { Scaffold( contentWindowInsets = WindowInsets.navigationBars, bottomBar = { - if (isPrimaryScreen) { + if (showBottomBar) { NavigationBar { bottomNavItems.forEach { item -> NavigationBarItem(