Эх сурвалжийг харах

Merge pull request #6981 from nextcloud/webviewDebugOnDev

Add debug webview when using versionDev built
Andy Scherzinger 4 жил өмнө
parent
commit
c11e44257a

+ 2 - 1
src/main/java/com/owncloud/android/ui/activity/ExternalSiteWebView.java

@@ -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);
         }