Don't detect disk r/w in strict mode

This commit is contained in:
paphonb
2019-07-03 23:58:26 +07:00
parent 92d158e860
commit b45d4e4331

View File

@@ -265,8 +265,8 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
if (DEBUG_STRICT_MODE && Utilities.ATLEAST_P) {
// TODO: Revise policy and potentially change this to send bug reports too
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
.detectDiskReads()
.detectDiskWrites()
//.detectDiskReads()
//.detectDiskWrites()
.detectNetwork() // or .detectAll() for all detectable problems
.penaltyLog()
.build());