订阅源添加单url选项

pull/743/head
gedoor 4 years ago
parent 3768fc5614
commit 03d84013e1
  1. 1
      app/src/main/assets/updateLog.md
  2. 5
      app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt
  3. 8
      app/src/main/res/layout/activity_rss_source_edit.xml

@ -5,6 +5,7 @@
**2020/12/19**
* 书签转移到文本菜单里,会记录选择的文本和位置
* 订阅源添加单url选项,直接打开url
**2020/12/17**
* 继续修复bug

@ -74,7 +74,10 @@ class RssFragment : VMBaseFragment<RssSourceViewModel>(R.layout.fragment_rss),
override fun openRss(rssSource: RssSource) {
if (rssSource.singleUrl) {
startActivity<ReadRssActivity>(Pair("origin", rssSource.sourceUrl))
startActivity<ReadRssActivity>(
Pair("title", rssSource.sourceName),
Pair("origin", rssSource.sourceUrl)
)
} else {
startActivity<RssSortActivity>(Pair("url", rssSource.sourceUrl))
}

@ -23,6 +23,12 @@
android:orientation="horizontal"
android:layout_gravity="center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="source:"
tools:ignore="HardcodedText,RtlHardcoded" />
<io.legado.app.lib.theme.view.ATECheckBox
android:id="@+id/cb_is_enable"
android:layout_width="wrap_content"
@ -34,7 +40,7 @@
android:id="@+id/cb_single_url"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:checked="false"
android:text="@string/single_url" />
</LinearLayout>

Loading…
Cancel
Save