From 0718c308da598fc733ab4a33f4949ffe094b7a7b Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 29 Dec 2021 20:57:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E4=B9=A6=E7=B1=8D=E6=97=A0?= =?UTF-8?q?=E6=9D=83=E9=99=90=E5=88=99=E4=BF=9D=E5=AD=98=E5=88=B0=E8=87=AA?= =?UTF-8?q?=E5=B7=B1=E9=80=89=E5=AE=9A=E7=9A=84=E6=96=87=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt | 3 +++ app/src/main/res/menu/rss_read.xml | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt b/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt index 72fb8d97b..7874afcec 100644 --- a/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt +++ b/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt @@ -101,6 +101,9 @@ class ReadRssActivity : VMBaseActivity putExtra("type", "rssSource") putExtra("key", viewModel.rssSource?.loginUrl) } + R.id.menu_browser_open -> binding.webView.url?.let { + openUrl(it) + } ?: toastOnUi("url null") } return super.onCompatOptionsItemSelected(item) } diff --git a/app/src/main/res/menu/rss_read.xml b/app/src/main/res/menu/rss_read.xml index f2c44b0f6..893cbfe1d 100644 --- a/app/src/main/res/menu/rss_read.xml +++ b/app/src/main/res/menu/rss_read.xml @@ -30,4 +30,9 @@ android:title="@string/login" app:showAsAction="never" /> + + \ No newline at end of file