From ba0545702a376bd7dc2ed5d6ece683de1284dea4 Mon Sep 17 00:00:00 2001 From: X1nto Date: Thu, 14 May 2020 01:36:47 +0400 Subject: [PATCH] main activity tests --- app/src/main/java/com/vanced/manager/ui/MainActivity.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/vanced/manager/ui/MainActivity.kt b/app/src/main/java/com/vanced/manager/ui/MainActivity.kt index dd315e51..d1a47336 100644 --- a/app/src/main/java/com/vanced/manager/ui/MainActivity.kt +++ b/app/src/main/java/com/vanced/manager/ui/MainActivity.kt @@ -22,8 +22,9 @@ class MainActivity : Main() { val toolbar: Toolbar = findViewById(R.id.home_toolbar) setSupportActionBar(toolbar) + } - val navHost = findNavController(R.id.bottom_nav_host) + /*val navHost = findNavController(R.id.bottom_nav_host) val appBarConfiguration = AppBarConfiguration(navHost.graph) toolbar.setupWithNavController(navHost, appBarConfiguration) @@ -66,7 +67,7 @@ class MainActivity : Main() { } return false } - + */ private fun setDisplayHomeAsUpEnabled(isNeeded: Boolean) { val toolbar: Toolbar = findViewById(R.id.home_toolbar) when {