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"> + +