Skip to content

Commit a67d62b

Browse files
committed
帮助中心 webview 支持混合 http 和 https
Change-Id: I8abc013cb64a38d7213a6b92b6d0d8082ebd2db0
1 parent 842ebed commit a67d62b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/com/tencent/iot/explorer/link/kitlink/activity/HelpWebViewActivity.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ class HelpWebViewActivity: BaseActivity(), MyCallback, View.OnClickListener {
8282
help_web.settings.builtInZoomControls = true
8383
help_web.settings.displayZoomControls = false
8484
help_web.settings.cacheMode = WebSettings.LOAD_NO_CACHE // 不缓存
85+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
86+
help_web.settings.mixedContentMode = WebSettings.MIXED_CONTENT_COMPATIBILITY_MODE
87+
}
8588
}
8689

8790
override fun setListener() {

0 commit comments

Comments
 (0)