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
This commit is contained in:
Tony Wickham
2016-09-28 15:34:51 -07:00
parent 9311387a22
commit 345bff3ce6
2 changed files with 21 additions and 21 deletions

View File

@@ -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);
}
/**