From 03d84013e1327c822667a1c2134c601801ef21a4 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sat, 19 Dec 2020 13:01:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E9=98=85=E6=BA=90=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=8D=95url=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/assets/updateLog.md | 1 + .../main/java/io/legado/app/ui/main/rss/RssFragment.kt | 5 ++++- app/src/main/res/layout/activity_rss_source_edit.xml | 8 +++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index d8a2a1cf9..cbfd6986d 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -5,6 +5,7 @@ **2020/12/19** * 书签转移到文本菜单里,会记录选择的文本和位置 +* 订阅源添加单url选项,直接打开url **2020/12/17** * 继续修复bug diff --git a/app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt b/app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt index 353fee6df..c8cc6e723 100644 --- a/app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt +++ b/app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt @@ -74,7 +74,10 @@ class RssFragment : VMBaseFragment(R.layout.fragment_rss), override fun openRss(rssSource: RssSource) { if (rssSource.singleUrl) { - startActivity(Pair("origin", rssSource.sourceUrl)) + startActivity( + Pair("title", rssSource.sourceName), + Pair("origin", rssSource.sourceUrl) + ) } else { startActivity(Pair("url", rssSource.sourceUrl)) } diff --git a/app/src/main/res/layout/activity_rss_source_edit.xml b/app/src/main/res/layout/activity_rss_source_edit.xml index f8554ad65..f576312db 100644 --- a/app/src/main/res/layout/activity_rss_source_edit.xml +++ b/app/src/main/res/layout/activity_rss_source_edit.xml @@ -23,6 +23,12 @@ android:orientation="horizontal" android:layout_gravity="center_vertical"> + +