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

Commit 2d42824e authored by Winson Chung's avatar Winson Chung
Browse files

Ensure that we update the next dark intensity when restoring the state

- animateIconTint() will check against mNextDarkIntensity before doing
  any animation

Bug: 155490130
Test: Change dark mode a ensure the nav bar updates

Change-Id: I51d151e7c0bd0b70a3df3cc8fcf4d2820909669e
parent fcaa5a86
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -97,6 +97,7 @@ public class LightBarTransitionsController implements Dumpable, Callbacks,

    public void restoreState(Bundle savedInstanceState) {
        setIconTintInternal(savedInstanceState.getFloat(EXTRA_DARK_INTENSITY, 0));
        mNextDarkIntensity = mDarkIntensity;
    }

    @Override