@ -52,10 +52,13 @@ abstract class BaseActivity(
} ?: super.onCreateOptionsMenu(menu)
}
override fun onMenuOpened(featureId: Int, menu: Menu): Boolean {
override fun onMenuOpened(featureId: Int, menu: Menu?): Boolean {
menu?.let {
menu.applyOpenTint(this)
return super.onMenuOpened(featureId, menu)
return true
open fun onCompatCreateOptionsMenu(menu: Menu): Boolean {
return super.onCreateOptionsMenu(menu)
@ -98,8 +98,8 @@ class BookInfoActivity :
return super.onCompatOptionsItemSelected(item)
menu.findItem(R.id.menu_can_update)?.isChecked =
menu?.findItem(R.id.menu_can_update)?.isChecked =
viewModel.bookData.value?.canUpdate ?: true