summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Winson Chung <winsonc@google.com> 2020-05-04 14:55:21 -0700
committer Winson Chung <winsonc@google.com> 2020-05-04 15:00:40 -0700
commit2d42824e14dcdcffbfb4f96fce787b699fbf760f (patch)
tree0cb000be93f560f8847a8f4dc7f407a1effd2ac8
parentfcaa5a86673b51412c91319139be28d0db772c0f (diff)
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
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/LightBarTransitionsController.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/LightBarTransitionsController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/LightBarTransitionsController.java
index 092dd49ba617..5b7ffd2d4164 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/LightBarTransitionsController.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/LightBarTransitionsController.java
@@ -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