Add debug webview when using versionDev built

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2020-09-21 07:33:31 +02:00
parent 035b342b40
commit 9e2b101663
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -100,7 +100,8 @@ public class ExternalSiteWebView extends FileActivity {
// allow debugging (when building the debug version); see details in
// https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT &&
(getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0) {
((getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0 ||
getResources().getBoolean(R.bool.is_beta))) {
Log_OC.d(this, "Enable debug for webView");
WebView.setWebContentsDebuggingEnabled(true);
}