From e891c3a620b1ff004fc625b513457c867b4d8fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyanghuaxuan=E2=80=9D?= <“646903573@qq.com”> Date: Thu, 22 Apr 2021 18:32:46 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/zhios/zhiying_base_widget/WebViewActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/src/main/java/cn/zhios/zhiying_base_widget/WebViewActivity.java b/android/src/main/java/cn/zhios/zhiying_base_widget/WebViewActivity.java index 0f8d1fb..672b5ab 100644 --- a/android/src/main/java/cn/zhios/zhiying_base_widget/WebViewActivity.java +++ b/android/src/main/java/cn/zhios/zhiying_base_widget/WebViewActivity.java @@ -117,7 +117,10 @@ public class WebViewActivity extends AppCompatActivity { settings.setGeolocationEnabled(true); + settings.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW); + webview.setVerticalScrollBarEnabled(false); + // // if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { // webview.setLayerType(View.LAYER_TYPE_SOFTWARE, null);