0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-12-03 16:27:25 +00:00

main activity tests

This commit is contained in:
X1nto 2020-05-14 01:36:47 +04:00
parent a22a9a0f6c
commit ba0545702a

View file

@ -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 {