main activity tests
This commit is contained in:
parent
ba0545702a
commit
3b8843b9d2
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue