Skip to content

Commit 786f3b7

Browse files
Merge pull request #27 from D4rK7355608/codex/fix-bottom-nav-bar-in-preferences
Fix startup tab preference
2 parents dbbdf2d + 1acda57 commit 786f3b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/d4rk/androidtutorials/java/ui/screens/main/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private void observeViewModel() {
175175
if (navHostFragment != null) {
176176
navController = navHostFragment.getNavController();
177177
NavGraph navGraph = navController.getNavInflater().inflate(R.navigation.mobile_navigation);
178-
navGraph.setStartDestination(R.id.navigation_home);
178+
navGraph.setStartDestination(startFragmentId);
179179
navController.setGraph(navGraph);
180180

181181
if (mBinding.navView instanceof BottomNavigationView bottomNav) {

0 commit comments

Comments
 (0)