From e92a2ada98166a8e077e0d697f9c2e0398c665bd Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 3 Nov 2020 09:00:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=8B=B7=E8=B4=9Durl?= 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 | 3 +++ app/src/main/res/menu/book_info.xml | 5 +++++ app/src/main/res/values-zh-rHK/strings.xml | 2 ++ app/src/main/res/values-zh-rTW/strings.xml | 2 ++ app/src/main/res/values-zh/strings.xml | 2 ++ app/src/main/res/values/strings.xml | 2 ++ 6 files changed, 16 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 3265d86f6..fca961485 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 @@ -106,6 +106,9 @@ class BookInfoActivity : viewModel.loadBookInfo(it, false) } } + R.id.menu_copy_url -> viewModel.bookData.value?.bookUrl?.let { + sendToClip(it) + } ?: toast(R.string.no_book) R.id.menu_can_update -> { if (viewModel.inBookshelf) { viewModel.bookData.value?.let { diff --git a/app/src/main/res/menu/book_info.xml b/app/src/main/res/menu/book_info.xml index 1d2260eea..3e867da8b 100644 --- a/app/src/main/res/menu/book_info.xml +++ b/app/src/main/res/menu/book_info.xml @@ -19,6 +19,11 @@ android:title="@string/refresh" app:showAsAction="never" /> + + 样式名称: 点击右上角文件夹图标,选择文件夹 智能扫描 + 拷贝URL + 没有书籍 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 66ea10f0e..ed94c9143 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -778,5 +778,7 @@ 样式名称: 点击右上角文件夹图标,选择文件夹 智能扫描 + 拷贝URL + 没有书籍 diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml index 48d82a087..79e0bcb8f 100644 --- a/app/src/main/res/values-zh/strings.xml +++ b/app/src/main/res/values-zh/strings.xml @@ -781,5 +781,7 @@ 样式名称: 点击右上角文件夹图标,选择文件夹 智能扫描 + 拷贝URL + 没有书籍 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6f7a6bbea..4270818c8 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -784,5 +784,7 @@ 样式名称: 点击右上角文件夹图标,选择文件夹 智能扫描 + 拷贝URL + 没有书籍