mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-17 17:48:20 +00:00
Fix bug where workspace is not aligned with hotseat in landscape.
The padding was added to the hotseat, but not to the workspace screens. Only affects landscape where bottomPadding != 0. Bug: 63996463 Change-Id: I8be0e36128963a1856d2effa76fdb2a6cfd966a8
This commit is contained in:
@@ -671,7 +671,8 @@ public class Workspace extends PagedView
|
||||
newScreen.setSoundEffectsEnabled(false);
|
||||
|
||||
int paddingLeftRight = mLauncher.getDeviceProfile().cellLayoutPaddingLeftRightPx;
|
||||
newScreen.setPadding(paddingLeftRight, 0, paddingLeftRight, 0);
|
||||
int paddingBottom = mLauncher.getDeviceProfile().cellLayoutBottomPaddingPx;
|
||||
newScreen.setPadding(paddingLeftRight, 0, paddingLeftRight, paddingBottom);
|
||||
|
||||
mWorkspaceScreens.put(screenId, newScreen);
|
||||
mScreenOrder.add(insertIndex, screenId);
|
||||
|
||||
Reference in New Issue
Block a user