优化
This commit is contained in:
1 parent
9a48fa02fe
commit
5a3ccfeee4
1 file changed
+4
-1
@@ -133,7 +133,10 @@ class ReadRssActivity : VMBaseActivity<ActivityRssReadBinding, ReadRssViewModel>
|
|||||||
displayZoomControls = false
|
displayZoomControls = false
|
||||||
setDarkeningAllowed(AppConfig.isNightTheme)
|
setDarkeningAllowed(AppConfig.isNightTheme)
|
||||||
}
|
}
|
||||||
binding.webView.addJavascriptInterface(this, "app")
|
binding.webView.addJavascriptInterface(this, "thisActivity")
|
||||||
|
viewModel.rssSource?.let {
|
||||||
|
binding.webView.addJavascriptInterface(it, "thisSource")
|
||||||
|
}
|
||||||
binding.webView.setOnLongClickListener {
|
binding.webView.setOnLongClickListener {
|
||||||
val hitTestResult = binding.webView.hitTestResult
|
val hitTestResult = binding.webView.hitTestResult
|
||||||
if (hitTestResult.type == WebView.HitTestResult.IMAGE_TYPE ||
|
if (hitTestResult.type == WebView.HitTestResult.IMAGE_TYPE ||
|
||||||
|
|||||||
Reference in new issue
Block a user