summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2017-08-04 09:26:14 -0700
committerAdam Cohen <adamcohen@google.com>2017-08-04 09:29:14 -0700
commit3051dbabe7d32026339fa7afbd02f0d354a221a8 (patch)
treeacb684765dfd727abf1a8d4dc5f7ac219d5257e2
parent7f522a25c39ceb35aa009f029abe74497f03c403 (diff)
downloadandroid_packages_apps_Trebuchet-3051dbabe7d32026339fa7afbd02f0d354a221a8.tar.gz
android_packages_apps_Trebuchet-3051dbabe7d32026339fa7afbd02f0d354a221a8.tar.bz2
android_packages_apps_Trebuchet-3051dbabe7d32026339fa7afbd02f0d354a221a8.zip
Switch the status bar color earlier in the all apps transition
-> When LAUNCHER3_GRADIENT_ALL_APPS is true, switch the status / nav bar to be dark when the transition is 75% of the way through, since at this point the gradient is already substantially under the status bar. issue 64385775 Change-Id: Ie27b8f2afa404c0b3081a4f17daa92ef4e0472bc
-rw-r--r--src/com/android/launcher3/allapps/AllAppsTransitionController.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsTransitionController.java b/src/com/android/launcher3/allapps/AllAppsTransitionController.java
index 44e0a0474..b85321e63 100644
--- a/src/com/android/launcher3/allapps/AllAppsTransitionController.java
+++ b/src/com/android/launcher3/allapps/AllAppsTransitionController.java
@@ -283,7 +283,9 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
}
// 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);