diff --git a/app/src/main/java/com/cyb3rko/logviewerforopenhab/MainActivity.kt b/app/src/main/java/com/cyb3rko/logviewerforopenhab/MainActivity.kt index d86a983..e462171 100644 --- a/app/src/main/java/com/cyb3rko/logviewerforopenhab/MainActivity.kt +++ b/app/src/main/java/com/cyb3rko/logviewerforopenhab/MainActivity.kt @@ -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) diff --git a/app/src/main/res/navigation/mobile_navigation2.xml b/app/src/main/res/navigation/mobile_navigation2.xml deleted file mode 100644 index c17e7ad..0000000 --- a/app/src/main/res/navigation/mobile_navigation2.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file