From 5d50f90de90cea77601c56809efdf80a4759edfd Mon Sep 17 00:00:00 2001 From: jingbin <770413277@qq.com> Date: Fri, 9 Oct 2020 18:30:51 +0800 Subject: [PATCH] delete request.grant(request.getResources()); --- ByWebView/src/main/java/me/jingbin/web/ByWebChromeClient.java | 3 ++- build.gradle | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ByWebView/src/main/java/me/jingbin/web/ByWebChromeClient.java b/ByWebView/src/main/java/me/jingbin/web/ByWebChromeClient.java index 6c4a832..2541b9e 100644 --- a/ByWebView/src/main/java/me/jingbin/web/ByWebChromeClient.java +++ b/ByWebView/src/main/java/me/jingbin/web/ByWebChromeClient.java @@ -248,7 +248,8 @@ public void handleFileChooser(int requestCode, int resultCode, Intent intent) { @Override public void onPermissionRequest(PermissionRequest request) { super.onPermissionRequest(request); - request.grant(request.getResources()); + // 部分页面可能崩溃 +// request.grant(request.getResources()); } ByFullscreenHolder getVideoFullView() { diff --git a/build.gradle b/build.gradle index 8cd9ca2..df45102 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.4.0' + classpath 'com.android.tools.build:gradle:3.4.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }