Hi,
I have two activities, in first one (main) I have a menu working perfect, then, I want to call the second activity (at the moment both have the same code) and the menu is not working…
override fun onCreateOptionsMenu(menu: Menu?): Boolean {
val inflater = menuInflater
inflater.inflate(R.menu.menu_crud, menu)
return super.onCreateOptionsMenu(menu)
}
They are extending AppCompatActivity(), I have no idea why it is not working if the code is a copypaste between them, simply OnCreateOptionsMenu is not called.