From 4d768beea6e9e987fed03877502233cfda7a0d90 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B0=A2=E6=84=8F=E5=B8=86?= <1657098617@qq.com>
Date: Sun, 15 May 2022 13:23:47 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=B8=8A=E4=BC=A0?=
=?UTF-8?q?=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../main/java/io/legado/app/ui/book/info/BookInfoActivity.kt | 2 ++
app/src/main/res/menu/book_info.xml | 5 +++++
2 files changed, 7 insertions(+)
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" />
+
+