diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/LightBarController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/LightBarController.java index 24c902151d7c1..37cb89e8a1ef3 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/LightBarController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/LightBarController.java @@ -218,19 +218,19 @@ public class LightBarController implements BatteryController.BatteryStateChangeC } } + // If no one is light, all icons become white. + if (numLightStacks == 0) { + mStatusBarIconController.getTransitionsController().setIconsDark( + false, animateChange()); + } + // If all stacks are light, all icons get dark. - if (numLightStacks == numStacks) { + else if (numLightStacks == numStacks) { mStatusBarIconController.setIconsDarkArea(null); mStatusBarIconController.getTransitionsController().setIconsDark(true, animateChange()); } - // If no one is light, all icons become white. - else if (numLightStacks == 0) { - mStatusBarIconController.getTransitionsController().setIconsDark( - false, animateChange()); - } - // Not the same for every stack, magic! else { mStatusBarIconController.setIconsDarkArea(