@ -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" />
android:id="@+id/menu_refresh"
android:title="@string/refresh"