@ -52,9 +52,12 @@ abstract class BaseActivity(
} ?: super.onCreateOptionsMenu(menu)
}
override fun onMenuOpened(featureId: Int, menu: Menu): Boolean {
menu.applyOpenTint(this)
return super.onMenuOpened(featureId, menu)
override fun onMenuOpened(featureId: Int, menu: Menu?): Boolean {
menu?.let {
return true
open fun onCompatCreateOptionsMenu(menu: Menu): Boolean {
@ -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