mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 10:18:59 +03:00
Add debug webview when using versionDev built
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
035b342b40
commit
9e2b101663
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue