Skip to content

fix(navigation): load mobile bottom nav bar on initial cloud connect - #653

Merged
ProdigyV21 merged 4 commits into
ProdigyV21:mainfrom
Himanth-reddy:fix_mobile_nav_bug
Sep 5, 2026
Merged

fix(navigation): load mobile bottom nav bar on initial cloud connect#653
ProdigyV21 merged 4 commits into
ProdigyV21:mainfrom
Himanth-reddy:fix_mobile_nav_bug

Conversation

@Himanth-reddy

Copy link
Copy Markdown
Collaborator

Description

Fixes a bug in the mobile version of the application where clicking "Connect to ARVIO Cloud" when launching the application for the first time fails to load the bottom navigation bar.

Root Cause

When the app is opened for the first time, no active profile exists yet (activeProfile == null). Previously, showBottomBar in MainActivity.kt explicitly required activeProfile != null along with checking for non-profile/login/player screens. Consequently, when navigating from initial profile selection to Settings (settings?autoCloudAuth=true), showBottomBar evaluated to false, hiding the bottom navigation bar.

Changes

  • AppBottomBar.kt: Introduced shouldShowBottomBar helper function to ensure the bottom bar is shown on all non-fullscreen mobile screens other than profile selection and login.
  • MainActivity.kt: Updated showBottomBar to use shouldShowBottomBar.
  • AppNavigation.kt: Safely pop to startDestinationId when switching profiles from Settings.
  • AppBottomBarResponsiveLayoutTest.kt: Added unit test coverage for initial launch cloud connect, profile selection, login, player fullscreen, and non-mobile devices.

@github-actions github-actions Bot added the area: android Changes to the Android app or Gradle build label Sep 5, 2026
@ProdigyV21
ProdigyV21 merged commit 9c5fcea into ProdigyV21:main Sep 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: android Changes to the Android app or Gradle build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants