feat: 添加上传按钮

pull/1894/head
谢意帆 3 years ago
parent 605e6f1110
commit 4d768beea6
  1. 2
      app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt
  2. 5
      app/src/main/res/menu/book_info.xml

@ -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)
}

@ -14,6 +14,11 @@
android:title="@string/share"
app:showAsAction="ifRoom" />
<item
android:id="@+id/menu_upload"
android:title="上传到云"
app:showAsAction="never" />
<item
android:id="@+id/menu_refresh"
android:title="@string/refresh"

Loading…
Cancel
Save