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:
Jon Miranda
2017-08-09 14:57:30 -07:00
parent 16d90e3be5
commit 9593f9ed0c

View File

@@ -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);