feat: 优化代码

pull/123/head
kunfei 5 years ago
parent 3d2e03cbd6
commit 1df26fd149
  1. 1
      app/src/main/assets/updateLog.md
  2. 11
      app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt

@ -8,6 +8,7 @@
* 添加底部操作栏颜色配置
* 修复滚动点击翻页,修复滚动最后一页显示加载中
* 去除备份恢复默认路径
* 尝试修复部分手机一键导入书源报错
* 翻页还有些bug不用反馈了,我已经知道,会修复的
**2020/02/29**

@ -78,6 +78,17 @@ class ReadRssActivity : VMBaseActivity<ReadRssViewModel>(R.layout.activity_rss_r
}
return true
}
@Suppress("DEPRECATION")
override fun shouldOverrideUrlLoading(view: WebView?, url: String?): Boolean {
if (url?.startsWith("http", true) == true) {
return false
}
url?.let {
openUrl(it)
}
return true
}
}
webView.settings.apply {
mixedContentMode = WebSettings.MIXED_CONTENT_ALWAYS_ALLOW

Loading…
Cancel
Save