Skip to content

Commit

Permalink
Simplify navigation graph
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb3rko committed Jan 3, 2021
1 parent 07576cd commit 08f2d7f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class MainActivity : AppCompatActivity() {
drawerLayout = findViewById(R.id.drawer_layout)
navView = findViewById(R.id.nav_view)
navController = findNavController(R.id.nav_host_fragment)
navController.setGraph(if (mySPR.getBoolean(AUTO_START, false)) R.navigation.mobile_navigation2 else R.navigation.mobile_navigation)
navController.setGraph(R.navigation.mobile_navigation)
// Passing each menu ID as a set of Ids because each
// menu should be considered as top level destinations.
appBarConfiguration = AppBarConfiguration(setOf(R.id.nav_menu), drawerLayout)
Expand Down
40 changes: 0 additions & 40 deletions app/src/main/res/navigation/mobile_navigation2.xml

This file was deleted.

0 comments on commit 08f2d7f

Please sign in to comment.