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
This commit is contained in:
Winson Chung
2020-05-04 14:55:21 -07:00
parent fcaa5a8667
commit 2d42824e14

View File

@@ -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