From 6cf1e0f36bda6839563df6c8131a6e34eaf0b11d Mon Sep 17 00:00:00 2001 From: Hyunyoung Song Date: Tue, 23 Aug 2016 11:06:24 -0700 Subject: [PATCH] Landscape container padding update. b/30021487 Change-Id: I179825eba09f3c4c57175e8f6da49708dae1931c (cherry picked from commit 9d96fd579039d07a6a36887ae699907631014c8d) --- src/com/android/launcher3/DeviceProfile.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java index 15f47b4fcd..e6802bd27e 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 }; } }