Using onCreateOptionsMenu for setupWithNavController creates a menu on the toolbar.
LiagiKhambow opened this issue · 0 comments
LiagiKhambow commented
According to the demo code provided int the NavControllerActivity we use onCreateOptionsMenu like this:
override fun onCreateOptionsMenu(menu: Menu?): Boolean {
menuInflater.inflate(R.menu.clock_tabs, menu)
bottom_bar.setupWithNavController(menu!!, navController)
return true
}
The code workks but this also creates a menu on the right end of the toolbar. How do I remove that?