mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
caedb5ea47
commit
252073188e
@ -138,7 +138,7 @@ class BookInfoActivity :
|
|||||||
menu.findItem(R.id.menu_upload)?.isVisible =
|
menu.findItem(R.id.menu_upload)?.isVisible =
|
||||||
viewModel.bookData.value?.isLocal ?: false
|
viewModel.bookData.value?.isLocal ?: false
|
||||||
menu.findItem(R.id.menu_edit)?.isVisible =
|
menu.findItem(R.id.menu_edit)?.isVisible =
|
||||||
!viewModel.bookData.value?.isWebFile ?: true
|
!(viewModel.bookData.value?.isWebFile ?: true)
|
||||||
return super.onMenuOpened(featureId, menu)
|
return super.onMenuOpened(featureId, menu)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -505,7 +505,7 @@ class BookInfoActivity :
|
|||||||
toastOnUi("Unexpected webFileData")
|
toastOnUi("Unexpected webFileData")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
selector<BookInfoViewModel.WebFile>(
|
selector(
|
||||||
R.string.download_and_import_file,
|
R.string.download_and_import_file,
|
||||||
webFiles
|
webFiles
|
||||||
) { _, webFile, _ ->
|
) { _, webFile, _ ->
|
||||||
|
Loading…
Reference in New Issue
Block a user