Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52f90787 authored by Jerry Chang's avatar Jerry Chang Committed by Automerger Merge Worker
Browse files

Merge "Fix invisible status bar icons when no appearance region reported" into...

Merge "Fix invisible status bar icons when no appearance region reported" into sc-v2-dev am: 449acd67 am: cd32ccaa

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15810443

Change-Id: I3b4fb29bd1f31381b3e8841e8a99abc416b8d738
parents a82df4ab cd32ccaa
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -225,19 +225,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(