We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dbbdf2d + 1acda57 commit 786f3b7Copy full SHA for 786f3b7
app/src/main/java/com/d4rk/androidtutorials/java/ui/screens/main/MainActivity.java
@@ -175,7 +175,7 @@ private void observeViewModel() {
175
if (navHostFragment != null) {
176
navController = navHostFragment.getNavController();
177
NavGraph navGraph = navController.getNavInflater().inflate(R.navigation.mobile_navigation);
178
- navGraph.setStartDestination(R.id.navigation_home);
+ navGraph.setStartDestination(startFragmentId);
179
navController.setGraph(navGraph);
180
181
if (mBinding.navView instanceof BottomNavigationView bottomNav) {
0 commit comments