[automerger] Switch the status bar color earlier in the all apps transition am: 3051dbabe7

Change-Id: I12f952a555287173bc7ad5e3acca3aaad2b6a1df
This commit is contained in:
Adam Cohen
2017-08-04 16:29:25 +00:00

View File

@@ -283,7 +283,9 @@ public class AllAppsTransitionController implements TouchController, SwipeDetect
}
// Use a light system UI (dark icons) if all apps is behind at least half of the status bar.
boolean forceChange = shift <= mStatusBarHeight / 2;
boolean forceChange = FeatureFlags.LAUNCHER3_GRADIENT_ALL_APPS ?
shift <= mShiftRange / 4 :
shift <= mStatusBarHeight / 2;
if (forceChange) {
mLauncher.getSystemUiController().updateUiState(
SystemUiController.UI_STATE_ALL_APPS, !mIsDarkTheme);