|
|
@ -98,8 +98,8 @@ class BookInfoActivity : |
|
|
|
return super.onCompatOptionsItemSelected(item) |
|
|
|
return super.onCompatOptionsItemSelected(item) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun onMenuOpened(featureId: Int, menu: Menu): Boolean { |
|
|
|
override fun onMenuOpened(featureId: Int, menu: Menu?): Boolean { |
|
|
|
menu.findItem(R.id.menu_can_update)?.isChecked = |
|
|
|
menu?.findItem(R.id.menu_can_update)?.isChecked = |
|
|
|
viewModel.bookData.value?.canUpdate ?: true |
|
|
|
viewModel.bookData.value?.canUpdate ?: true |
|
|
|
return super.onMenuOpened(featureId, menu) |
|
|
|
return super.onMenuOpened(featureId, menu) |
|
|
|
} |
|
|
|
} |
|
|
|