Android remove setWebContentsDebuggingEnabled
This commit is contained in:
parent
993852fd5e
commit
3594217839
@ -322,9 +322,9 @@ public class DoricWebShellJSExecutor implements IDoricJSE {
|
||||
@Override
|
||||
public void run() {
|
||||
webView = new WebView(context.getApplicationContext());
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && BuildConfig.DEBUG) {
|
||||
WebView.setWebContentsDebuggingEnabled(true);
|
||||
}
|
||||
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && BuildConfig.DEBUG) {
|
||||
// WebView.setWebContentsDebuggingEnabled(true);
|
||||
// }
|
||||
WebSettings webSettings = webView.getSettings();
|
||||
webSettings.setJavaScriptEnabled(true);
|
||||
webView.setWebChromeClient(new DoricWebChromeClient());
|
||||
|
@ -224,9 +224,9 @@ public class DoricWebViewJSExecutor implements IDoricJSE {
|
||||
webView.loadUrl("about:blank");
|
||||
WebViewCallback webViewCallback = new WebViewCallback();
|
||||
webView.addJavascriptInterface(webViewCallback, "NativeClient");
|
||||
if (BuildConfig.DEBUG) {
|
||||
WebView.setWebContentsDebuggingEnabled(true);
|
||||
}
|
||||
// if (BuildConfig.DEBUG) {
|
||||
// WebView.setWebContentsDebuggingEnabled(true);
|
||||
// }
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user