Merge "Landscape container padding update. b/30021487" into ub-launcher3-calgary-polish

This commit is contained in:
Hyunyoung Song authored and Android (Google) Code Review committed 2016-08-23 18:11:25 +00:00
commit 6b5e60d0e4
1 file changed
+3 -3
+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 };
}
}