2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-15 18:12:54 +00:00

Closes #1556 - Add back button to LibraryFragment (#2200)

This commit is contained in:
Emily Kager 2019-05-01 10:07:38 -07:00 committed by Colin Lee
parent eb0a10078c
commit 1e8de384d8

View File

@ -67,7 +67,8 @@ open class HomeActivity : AppCompatActivity() {
setContentView(R.layout.activity_home) setContentView(R.layout.activity_home)
val appBarConfiguration = AppBarConfiguration.Builder(setOf(R.id.libraryFragment)).build() // Add ids to this that we don't want to have a toolbar back button
val appBarConfiguration = AppBarConfiguration.Builder().build()
val navigationToolbar = findViewById<Toolbar>(R.id.navigationToolbar) val navigationToolbar = findViewById<Toolbar>(R.id.navigationToolbar)
setSupportActionBar(navigationToolbar) setSupportActionBar(navigationToolbar)
NavigationUI.setupWithNavController(navigationToolbar, navHost.navController, appBarConfiguration) NavigationUI.setupWithNavController(navigationToolbar, navHost.navController, appBarConfiguration)