diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2016-08-23 11:06:24 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2016-09-02 18:24:58 +0000 |
commit | 6cf1e0f36bda6839563df6c8131a6e34eaf0b11d (patch) | |
tree | b7711c8164df28fc7d730913d9065ba2d27ef13d /src/com/android | |
parent | def6e474dad311224b97ae66f62c3313c6542955 (diff) | |
download | android_packages_apps_Trebuchet-6cf1e0f36bda6839563df6c8131a6e34eaf0b11d.tar.gz android_packages_apps_Trebuchet-6cf1e0f36bda6839563df6c8131a6e34eaf0b11d.tar.bz2 android_packages_apps_Trebuchet-6cf1e0f36bda6839563df6c8131a6e34eaf0b11d.zip |
Landscape container padding update.
b/30021487
Change-Id: I179825eba09f3c4c57175e8f6da49708dae1931c
(cherry picked from commit 9d96fd579039d07a6a36887ae699907631014c8d)
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/launcher3/DeviceProfile.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java index 15f47b4fc..e6802bd27 100644 --- a/src/com/android/launcher3/DeviceProfile.java +++ b/src/com/android/launcher3/DeviceProfile.java @@ -589,9 +589,9 @@ public class DeviceProfile { return new int[] {0, 0}; } - // In landscape, we just match the vertical display width - int containerWidth = heightPx; - int padding = (availableWidthPx - containerWidth) / 2; + // In landscape, we match the width of the workspace + int padding = (pageIndicatorLandGutterRightNavBarPx + + hotseatBarHeightPx + hotseatLandGutterPx + mInsets.left) / 2; return new int[]{ padding, padding }; } } |