You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We do this with the following in Application#onCreate:
if (BuildConfig.IS_DEVELOPER_BUILD) {
// ActivityThread does not allow setting StrictMode during Application#onCreate. Post it// to run as soon as possible after this method.newHandler(Looper.getMainLooper()).postAtFrontOfQueue(() -> {
StrictMode.setVmPolicy(newVmPolicy.Builder() //
.detectAll() //
.penaltyLog() //
.penaltyDeath() //
.build());
StrictMode.setThreadPolicy(newThreadPolicy.Builder() //
.detectAll() //
.penaltyLog() //
.penaltyDeath() //
.build());
});
}
Where IS_DEVELOPER_BUILD detects local debug builds, although that distinction here is probably irrelevant and could just be DEBUG
Or, maybe as a switch in the debug drawer?
The text was updated successfully, but these errors were encountered: