diff options
author | Jon Miranda <jonmiranda@google.com> | 2017-08-09 14:57:30 -0700 |
---|---|---|
committer | Jon Miranda <jonmiranda@google.com> | 2017-08-09 14:57:30 -0700 |
commit | 9593f9ed0cd0215dc3544f5524c40b9025709895 (patch) | |
tree | 6cd9aed66d9a376c94e32cacd7b9b858120a20d9 /src/com | |
parent | 16d90e3be590d0232e87ef1694356876c2da320d (diff) | |
download | android_packages_apps_Trebuchet-9593f9ed0cd0215dc3544f5524c40b9025709895.tar.gz android_packages_apps_Trebuchet-9593f9ed0cd0215dc3544f5524c40b9025709895.tar.bz2 android_packages_apps_Trebuchet-9593f9ed0cd0215dc3544f5524c40b9025709895.zip |
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
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/launcher3/Workspace.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index a2270d6c5..f8d64984e 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java @@ -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); |