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