pull/49/head
kunfei 5 years ago
parent 2c7f2af0fa
commit 1077e415e7
  1. 2
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt
  2. 5
      app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt

@ -51,9 +51,9 @@ class AnalyzeUrl(
private set private set
var path: String? = null var path: String? = null
private set private set
val headerMap = HashMap<String, String>()
private var queryStr: String? = null private var queryStr: String? = null
private val fieldMap = LinkedHashMap<String, String>() private val fieldMap = LinkedHashMap<String, String>()
private val headerMap = HashMap<String, String>()
private var charset: String? = null private var charset: String? = null
private var bodyTxt: String? = null private var bodyTxt: String? = null
private var body: RequestBody? = null private var body: RequestBody? = null

@ -83,10 +83,7 @@ class ReadRssActivity : VMBaseActivity<ReadRssViewModel>(R.layout.activity_rss_r
} }
}) })
viewModel.urlLiveData.observe(this, Observer { viewModel.urlLiveData.observe(this, Observer {
webView.settings.apply { webView.loadUrl(it.url, it.headerMap)
}
webView.loadUrl(it.url)
}) })
} }

Loading…
Cancel
Save