From 513fbe47059a4056a02f808a24b037dbe7a9cf9d Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 17 Dec 2019 11:55:24 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/rss/article/RssArticlesActivity.kt | 1 + app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt | 2 +- app/src/main/res/layout/activity_rss_read.xml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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 0682fd32c..4c042c579 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 @@ -126,6 +126,7 @@ class RssArticlesActivity : VMBaseActivity(R.layout.activi override fun readRss(rssArticle: RssArticle) { viewModel.read(rssArticle) startActivity( + Pair("title", rssArticle.title), Pair("origin", rssArticle.origin), Pair("link", rssArticle.link) ) diff --git a/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt b/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt index d84b81e23..688519c3c 100644 --- a/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt +++ b/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt @@ -25,7 +25,7 @@ class ReadRssActivity : VMBaseActivity(R.layout.activity_rss_r override fun onActivityCreated(savedInstanceState: Bundle?) { viewModel.callBack = this - title = intent.getStringExtra("title") + title_bar.title = intent.getStringExtra("title") initWebView() initLiveData() viewModel.initData(intent) diff --git a/app/src/main/res/layout/activity_rss_read.xml b/app/src/main/res/layout/activity_rss_read.xml index 5d403f5fe..e2b27076c 100644 --- a/app/src/main/res/layout/activity_rss_read.xml +++ b/app/src/main/res/layout/activity_rss_read.xml @@ -5,6 +5,7 @@ android:orientation="vertical">