pull/909/head
gedoor 4 years ago
parent ab376928f6
commit dff3f3dc9e
  1. 5
      app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt
  2. 9
      app/src/main/res/menu/book_info.xml
  3. 3
      app/src/main/res/values-zh-rHK/strings.xml
  4. 3
      app/src/main/res/values-zh-rTW/strings.xml
  5. 3
      app/src/main/res/values-zh/strings.xml
  6. 3
      app/src/main/res/values/strings.xml

@ -108,7 +108,10 @@ class BookInfoActivity :
viewModel.loadBookInfo(it, false) viewModel.loadBookInfo(it, false)
} }
} }
R.id.menu_copy_url -> viewModel.bookData.value?.bookUrl?.let { R.id.menu_copy_book_url -> viewModel.bookData.value?.bookUrl?.let {
sendToClip(it)
} ?: toastOnUi(R.string.no_book)
R.id.menu_copy_toc_url -> viewModel.bookData.value?.tocUrl?.let {
sendToClip(it) sendToClip(it)
} ?: toastOnUi(R.string.no_book) } ?: toastOnUi(R.string.no_book)
R.id.menu_can_update -> { R.id.menu_can_update -> {

@ -20,8 +20,13 @@
app:showAsAction="never" /> app:showAsAction="never" />
<item <item
android:id="@+id/menu_copy_url" android:id="@+id/menu_copy_book_url"
android:title="@string/copy_url" android:title="@string/copy_book_url"
app:showAsAction="never" />
<item
android:id="@+id/menu_copy_toc_url"
android:title="@string/copy_toc_url"
app:showAsAction="never" /> app:showAsAction="never" />
<item <item

@ -776,7 +776,8 @@
<string name="style_name">样式名称:</string> <string name="style_name">样式名称:</string>
<string name="empty_msg_import_book">点击右上角文件夹图标,选择文件夹</string> <string name="empty_msg_import_book">点击右上角文件夹图标,选择文件夹</string>
<string name="scan_folder">智能扫描</string> <string name="scan_folder">智能扫描</string>
<string name="copy_url">拷贝URL</string> <string name="copy_book_url">拷贝书籍URL</string>
<string name="copy_toc_url">拷贝目录URL</string>
<string name="no_book">没有书籍</string> <string name="no_book">没有书籍</string>
<string name="keep_original_name">保留原名</string> <string name="keep_original_name">保留原名</string>
<string name="click_regional_config">点击区域设置</string> <string name="click_regional_config">点击区域设置</string>

@ -780,7 +780,8 @@
<string name="style_name">樣式名稱:</string> <string name="style_name">樣式名稱:</string>
<string name="empty_msg_import_book">點擊右上角資料夾圖示,選擇資料夾</string> <string name="empty_msg_import_book">點擊右上角資料夾圖示,選擇資料夾</string>
<string name="scan_folder">智慧掃描</string> <string name="scan_folder">智慧掃描</string>
<string name="copy_url">複製URL</string> <string name="copy_book_url">複製書籍URL</string>
<string name="copy_toc_url">複製目录URL</string>
<string name="no_book">沒有書籍</string> <string name="no_book">沒有書籍</string>
<string name="keep_original_name">保留原名</string> <string name="keep_original_name">保留原名</string>
<string name="click_regional_config">點擊區域設定</string> <string name="click_regional_config">點擊區域設定</string>

@ -780,7 +780,8 @@
<string name="style_name">样式名称:</string> <string name="style_name">样式名称:</string>
<string name="empty_msg_import_book">点击右上角文件夹图标,选择文件夹</string> <string name="empty_msg_import_book">点击右上角文件夹图标,选择文件夹</string>
<string name="scan_folder">智能扫描</string> <string name="scan_folder">智能扫描</string>
<string name="copy_url">拷贝URL</string> <string name="copy_book_url">拷贝书籍URL</string>
<string name="copy_toc_url">拷贝目录URL</string>
<string name="no_book">没有书籍</string> <string name="no_book">没有书籍</string>
<string name="keep_original_name">保留原名</string> <string name="keep_original_name">保留原名</string>
<string name="click_regional_config">点击区域设置</string> <string name="click_regional_config">点击区域设置</string>

@ -783,7 +783,8 @@
<string name="style_name">样式名称:</string> <string name="style_name">样式名称:</string>
<string name="empty_msg_import_book">点击右上角文件夹图标,选择文件夹</string> <string name="empty_msg_import_book">点击右上角文件夹图标,选择文件夹</string>
<string name="scan_folder">智能扫描</string> <string name="scan_folder">智能扫描</string>
<string name="copy_url">拷贝URL</string> <string name="copy_book_url">拷贝书籍URL</string>
<string name="copy_toc_url">拷贝目录URL</string>
<string name="no_book">没有书籍</string> <string name="no_book">没有书籍</string>
<string name="keep_original_name">保留原名</string> <string name="keep_original_name">保留原名</string>
<string name="click_regional_config">点击区域设置</string> <string name="click_regional_config">点击区域设置</string>

Loading…
Cancel
Save