mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Update vertical drag handle (all apps arrow)
- Change drawable to match specs, using ShadowDrawable to add shadow when necessary based on workspace theme. - New drawable is 18dp by 6dp; add support for different width vs height, and decouple from workspace page indicator (which is still 24dp tall). Bug: 151768994 Change-Id: Icfd0eac197ebc4d1f5bb799f8538c4bd99d800cd
This commit is contained in:
@@ -123,8 +123,8 @@ public class AllAppsTransitionController implements StateHandler, OnDeviceProfil
|
||||
|
||||
// Use a light system UI (dark icons) if all apps is behind at least half of the
|
||||
// status bar.
|
||||
boolean forceChange = shiftCurrent - mScrimView.getDragHandleSize()
|
||||
<= mLauncher.getDeviceProfile().getInsets().top / 2;
|
||||
boolean forceChange = Math.min(shiftCurrent, mScrimView.getVisualTop())
|
||||
<= mLauncher.getDeviceProfile().getInsets().top / 2f;
|
||||
if (forceChange) {
|
||||
mLauncher.getSystemUiController().updateUiState(UI_STATE_ALL_APPS, !mIsDarkTheme);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user