main activity tests

This commit is contained in:
X1nto 2020-05-14 10:27:07 +04:00
parent ba0545702a
commit 3b8843b9d2
2 changed files with 2 additions and 5 deletions

View File

@ -22,9 +22,8 @@ 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)
@ -67,7 +66,7 @@ class MainActivity : Main() {
}
return false
}
*/
private fun setDisplayHomeAsUpEnabled(isNeeded: Boolean) {
val toolbar: Toolbar = findViewById(R.id.home_toolbar)
when {

View File

@ -6,7 +6,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--
<fragment
android:id="@+id/bottom_nav_host"
android:name="androidx.navigation.fragment.NavHostFragment"
@ -15,7 +14,6 @@
android:layout_below="@id/home_appbar"
app:defaultNavHost="true"
app:navGraph="@navigation/mobile_navigation"/>
-->
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/home_appbar"