mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化书籍详情页某些菜单的显示
This commit is contained in:
parent
fdfa9a3ff2
commit
3357db03f4
@ -127,8 +127,10 @@ class BookInfoActivity :
|
||||
viewModel.bookSource != null
|
||||
menu.findItem(R.id.menu_set_book_variable)?.isVisible =
|
||||
viewModel.bookSource != null
|
||||
menu.findItem(R.id.menu_can_update)?.isVisible =
|
||||
viewModel.bookSource != null
|
||||
menu.findItem(R.id.menu_limit_content_length)?.isVisible =
|
||||
viewModel.bookSource == null
|
||||
viewModel.bookData.value?.isLocalTxt() ?: false
|
||||
return super.onMenuOpened(featureId, menu)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user