FIx. debugging

This commit is contained in:
Chris Garrity 2020-01-16 08:49:59 -05:00
parent ceb4f2ad7f
commit 0a580324bf
2 changed files with 1 additions and 4 deletions

View file

@ -13,9 +13,6 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
}
}
flavorDimensions 'scratchjrversion'

View file

@ -365,7 +365,7 @@ public class ScratchJrActivity
webSettings.setDisplayZoomControls(false);
webSettings.setLoadWithOverviewMode(false);
webSettings.setUseWideViewPort(false);
if (0 != (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE)) {
if (BuildConfig.DEBUG) {
WebView.setWebContentsDebuggingEnabled(true);
}