mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Add taskbarIconSize to GridOption/DisplayOptions
- Renamed variables to make it more clear what they represent - DeviceProfile will be source of truth for taskbar sizes Bug: 265144213 Test: phone, multi-display, tablet Change-Id: Id9c19d15a65894fd7645e0f876a4b6527b713c34 Flag: ENABLE_TRANSIENT_TASKBAR=true
This commit is contained in:
@@ -265,7 +265,7 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
flags -> (flags & flagsToRemoveTranslation) != 0, AnimatedFloat.VALUE,
|
||||
1, 0));
|
||||
// Center nav buttons in new height for IME.
|
||||
float transForIme = (mContext.getDeviceProfile().taskbarSize
|
||||
float transForIme = (mContext.getDeviceProfile().taskbarHeight
|
||||
- mControllers.taskbarInsetsController.getTaskbarHeightForIme()) / 2f;
|
||||
// For gesture nav, nav buttons only show for IME anyway so keep them translated down.
|
||||
float defaultButtonTransY = alwaysShowButtons ? 0 : transForIme;
|
||||
|
||||
Reference in New Issue
Block a user