diff --git a/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt b/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt index 5b437029d..efa1f1526 100644 --- a/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt @@ -127,6 +127,8 @@ class BookInfoActivity : viewModel.bookSource != null menu.findItem(R.id.menu_split_long_chapter)?.isVisible = viewModel.bookData.value?.isLocalTxt() ?: false + menu.findItem(R.id.menu_upload)?.isVisible = + viewModel.bookData.value?.isLocalBook() ?: false return super.onMenuOpened(featureId, menu) } diff --git a/app/src/main/res/menu/book_info.xml b/app/src/main/res/menu/book_info.xml index 911ba2332..675763611 100644 --- a/app/src/main/res/menu/book_info.xml +++ b/app/src/main/res/menu/book_info.xml @@ -14,6 +14,11 @@ android:title="@string/share" app:showAsAction="ifRoom" /> + +