优化书籍详情页某些菜单的显示

pull/1594/head
Xwite 3 years ago
parent fdfa9a3ff2
commit 3357db03f4
  1. 4
      app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt

@ -127,8 +127,10 @@ class BookInfoActivity :
viewModel.bookSource != null viewModel.bookSource != null
menu.findItem(R.id.menu_set_book_variable)?.isVisible = menu.findItem(R.id.menu_set_book_variable)?.isVisible =
viewModel.bookSource != null viewModel.bookSource != null
menu.findItem(R.id.menu_can_update)?.isVisible =
viewModel.bookSource != null
menu.findItem(R.id.menu_limit_content_length)?.isVisible = menu.findItem(R.id.menu_limit_content_length)?.isVisible =
viewModel.bookSource == null viewModel.bookData.value?.isLocalTxt() ?: false
return super.onMenuOpened(featureId, menu) return super.onMenuOpened(featureId, menu)
} }

Loading…
Cancel
Save