From b45d4e4331e1715cb2bbd11e466da3aa03c911da Mon Sep 17 00:00:00 2001 From: paphonb Date: Wed, 3 Jul 2019 23:58:26 +0700 Subject: [PATCH] Don't detect disk r/w in strict mode --- src/com/android/launcher3/Launcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index d442e68a63..d2b78fdbb8 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -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());