Skip to content

Using onCreateOptionsMenu for setupWithNavController creates a menu on the toolbar. #69

@LiagiKhambow

Description

@LiagiKhambow

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions