summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/allapps/AllAppsTransitionController.java
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2016-09-28 15:34:51 -0700
committerTony Wickham <twickham@google.com>2016-09-28 16:53:17 -0700
commit345bff3ce671c62094a8afb5958a361db645f3cf (patch)
tree98d435c16e3c3d5f0b973c91d753290e00b03579 /src/com/android/launcher3/allapps/AllAppsTransitionController.java
parent9311387a227d7bd894d880b897fb80ca34b39405 (diff)
downloadandroid_packages_apps_Trebuchet-345bff3ce671c62094a8afb5958a361db645f3cf.tar.gz
android_packages_apps_Trebuchet-345bff3ce671c62094a8afb5958a361db645f3cf.tar.bz2
android_packages_apps_Trebuchet-345bff3ce671c62094a8afb5958a361db645f3cf.zip
Some minor fixes for extracted status bar.
- setLightStatusBar() is now updateStatusBar(), with a forceLight parameter. We set the status bar to be light if forceLight or shouldBeLightStatusBar() (based on wallpaper). - Force status bar to be light if all apps is open. - Default to dark status bar, not light (light == dark icons) Bug: 29452834 Change-Id: I7b102ceff2f1ef2ab8defd4a46c698df4feaf2a5
Diffstat (limited to 'src/com/android/launcher3/allapps/AllAppsTransitionController.java')
-rw-r--r--src/com/android/launcher3/allapps/AllAppsTransitionController.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsTransitionController.java b/src/com/android/launcher3/allapps/AllAppsTransitionController.java
index fb15afecd..8bbb29b4b 100644
--- a/src/com/android/launcher3/allapps/AllAppsTransitionController.java
+++ b/src/com/android/launcher3/allapps/AllAppsTransitionController.java
@@ -277,8 +277,8 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
}
// Use a light status bar (dark icons) if all apps is behind at least half of the status
// bar. If the status bar is already light due to wallpaper extraction, keep it that way.
- boolean enable = shift <= mStatusBarHeight / 2 || mLauncher.shouldBeLightStatusBar();
- mLauncher.setLightStatusBar(enable);
+ boolean forceLight = shift <= mStatusBarHeight / 2;
+ mLauncher.activateLightStatusBar(forceLight);
}
/**