SysUiLeaks: Turn leak reporting because of known leak

Test: use device for a while, observe that no notifications are posted
Bug: 35345376
Change-Id: I8814cb540f4d8d840312e29fce4a28fee317e787
This commit is contained in:
Adrian Roos
2017-02-14 17:19:16 +01:00
parent 2c92e9daa4
commit fb2bb3f099

View File

@@ -20,6 +20,7 @@ package com.android.systemui.util.leak;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.os.SystemProperties;
import android.support.annotation.VisibleForTesting;
import com.android.systemui.Dependency;
@@ -80,11 +81,15 @@ public class GarbageMonitor {
public static class Service extends SystemUI {
// TODO(b/35345376): Turn this back on for debuggable builds after known leak fixed.
private static final boolean ENABLED = Build.IS_DEBUGGABLE
&& SystemProperties.getBoolean("debug.enable_leak_reporting", false);
private GarbageMonitor mGarbageMonitor;
@Override
public void start() {
if (!Build.IS_DEBUGGABLE) {
if (!ENABLED) {
return;
}
mGarbageMonitor = Dependency.get(GarbageMonitor.class);