Landscape container padding update.

b/30021487

Change-Id: I179825eba09f3c4c57175e8f6da49708dae1931c
(cherry picked from commit 9d96fd5790)
This commit is contained in:
Hyunyoung Song
2016-08-23 11:06:24 -07:00
committed by Sunny Goyal
parent def6e474da
commit 6cf1e0f36b
+3 -3
View File
@@ -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 };
}
}