From 1077e415e70c69017b5cdc564b7b9d40df419c5d Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 17 Nov 2019 19:35:36 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt | 2 +- .../main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt index 3952cf480..1705b1a50 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt @@ -51,9 +51,9 @@ class AnalyzeUrl( private set var path: String? = null private set + val headerMap = HashMap() private var queryStr: String? = null private val fieldMap = LinkedHashMap() - private val headerMap = HashMap() private var charset: String? = null private var bodyTxt: String? = null private var body: RequestBody? = null 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 3a5dd609a..928f8b04e 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 @@ -83,10 +83,7 @@ class ReadRssActivity : VMBaseActivity(R.layout.activity_rss_r } }) viewModel.urlLiveData.observe(this, Observer { - webView.settings.apply { - - } - webView.loadUrl(it.url) + webView.loadUrl(it.url, it.headerMap) }) }