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

This commit is contained in:
Hyunyoung Song
2016-08-23 18:11:24 +00:00
committed by Android (Google) Code Review
+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 };
}
}