From 5ef0a9e826aaa8405a26f53c756f9bf0549709c3 Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Mon, 27 Jul 2015 13:03:42 -0400 Subject: [PATCH] Battery summary - tint uid 0 icon Bug: 22657823 Change-Id: If360420ada70777520ccc682022f7f4e2e50a70b --- src/com/android/settings/fuelgauge/PowerUsageSummary.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/fuelgauge/PowerUsageSummary.java b/src/com/android/settings/fuelgauge/PowerUsageSummary.java index 9e3029db968..a1fcb5231a7 100644 --- a/src/com/android/settings/fuelgauge/PowerUsageSummary.java +++ b/src/com/android/settings/fuelgauge/PowerUsageSummary.java @@ -317,7 +317,8 @@ public class PowerUsageSummary extends PowerUsageBase { if (sipper.uidObj != null) { pref.setKey(Integer.toString(sipper.uidObj.getUid())); } - if (sipper.drainType != DrainType.APP && sipper.drainType != DrainType.USER) { + if ((sipper.drainType != DrainType.APP || sipper.uidObj.getUid() == 0) + && sipper.drainType != DrainType.USER) { pref.setTint(colorControl); } addedSome = true;