From d6fc96ca19260b5dc0bf99d3f3adf18d94076dc6 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 2 Oct 2019 16:21:41 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt | 4 ++-- .../java/io/legado/app/ui/rss/article/RssArticlesActivity.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 aa3419b72..0dddd4426 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 @@ -58,7 +58,7 @@ class RssFragment : BaseFragment(R.layout.fragment_rss), } yesButton{ Log.i("RSS","Quick Add URL: ${urlEdit.text}") - startActivity("QuickAddURL" to urlEdit.text.toString().trim()) + startActivity("url" to urlEdit.text.toString().trim()) } }.show() } @@ -79,6 +79,6 @@ class RssFragment : BaseFragment(R.layout.fragment_rss), } override fun openRss(rssSource: RssSource) { - + startActivity(Pair("url", rssSource.sourceUrl)) } } \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesActivity.kt b/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesActivity.kt index 3ab686c7f..3590627a1 100644 --- a/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesActivity.kt +++ b/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesActivity.kt @@ -21,9 +21,9 @@ import java.net.URL class RssArticlesActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - if (intent.hasExtra("QuickAddURL")) { + if (intent.hasExtra("url")) { // 处理从 快速添加并预览 跳转到这个页面 - val urlString = intent.getStringExtra("QuickAddURL") + val urlString = intent.getStringExtra("url") val adapter = ArticleAdapter(mutableListOf(), this) listView { this.adapter = adapter