|
@ -340,7 +340,8 @@ class MainActivity : BaseLanguageActivity() { |
|
|
it.startDestinationFragmentId |
|
|
it.startDestinationFragmentId |
|
|
}.toMutableList().apply { |
|
|
}.toMutableList().apply { |
|
|
add(R.id.postViewFragment) |
|
|
add(R.id.postViewFragment) |
|
|
add(R.id.favoritesFragment) |
|
|
|
|
|
|
|
|
add(R.id.favorites_non_top) |
|
|
|
|
|
add(R.id.notifications_viewer_non_top) |
|
|
add(R.id.profile_non_top) |
|
|
add(R.id.profile_non_top) |
|
|
} |
|
|
} |
|
|
if (setDefaultTabFromSettings) { |
|
|
if (setDefaultTabFromSettings) { |
|
@ -356,7 +357,7 @@ class MainActivity : BaseLanguageActivity() { |
|
|
rootNavGraph.id = R.id.root_nav_graph |
|
|
rootNavGraph.id = R.id.root_nav_graph |
|
|
rootNavGraph.label = "root_nav_graph" |
|
|
rootNavGraph.label = "root_nav_graph" |
|
|
rootNavGraph.addDestinations(topLevelDestinations) |
|
|
rootNavGraph.addDestinations(topLevelDestinations) |
|
|
rootNavGraph.setStartDestination(if (startNavRootId != 0) startNavRootId else R.id.profile_nav_graph) |
|
|
|
|
|
|
|
|
rootNavGraph.startDestination = if (startNavRootId != 0) startNavRootId else R.id.profile_nav_graph |
|
|
navController.graph = rootNavGraph |
|
|
navController.graph = rootNavGraph |
|
|
binding.bottomNavView.setupWithNavController(navController) |
|
|
binding.bottomNavView.setupWithNavController(navController) |
|
|
appBarConfiguration = AppBarConfiguration(currentTabs.map { it.startDestinationFragmentId }.toSet()) |
|
|
appBarConfiguration = AppBarConfiguration(currentTabs.map { it.startDestinationFragmentId }.toSet()) |
|
|