am d47807d7: am 3a3517fb: Add widget size options for QSB.

* commit 'd47807d7a97d4ab555b2f9be882591c08955d699':
  Add widget size options for QSB.
This commit is contained in:
Tony Wickham
2015-10-07 20:45:49 +00:00
committed by Android Git Automerger
2 changed files with 28 additions and 5 deletions

View File

@@ -250,7 +250,7 @@ public class DeviceProfile {
/** Returns the search bar bounds in the current orientation */
public Rect getSearchBarBounds(boolean isLayoutRtl) {
Rect bounds = new Rect();
if (isLandscape && transposeLayoutWithOrientation) {
if (isVerticalBarLayout()) {
if (isLayoutRtl) {
bounds.set(availableWidthPx - searchBarSpaceHeightPx, edgeMarginPx,
availableWidthPx, availableHeightPx - edgeMarginPx);
@@ -296,7 +296,7 @@ public class DeviceProfile {
Rect getWorkspacePadding(boolean isLayoutRtl) {
Rect searchBarBounds = getSearchBarBounds(isLayoutRtl);
Rect padding = new Rect();
if (isLandscape && transposeLayoutWithOrientation) {
if (isVerticalBarLayout()) {
// Pad the left and right of the workspace with search/hotseat bar sizes
if (isLayoutRtl) {
padding.set(hotseatBarHeightPx, edgeMarginPx,
@@ -332,7 +332,7 @@ public class DeviceProfile {
}
private int getWorkspacePageSpacing(boolean isLayoutRtl) {
if ((isLandscape && transposeLayoutWithOrientation) || isLargeTablet) {
if (isVerticalBarLayout() || isLargeTablet) {
// In landscape mode the page spacing is set to the default.
return defaultPageSpacingPx;
} else {