Making the QSB align in Fixed Landscape
Fix: 378959186 Fix: 378959255 Bug: 364711735 Test: HomeScreenImageTest Flag: com.android.launcher3.one_grid_specs Change-Id: I36612949006f12929cdc5b21f27f20ebc9751201
This commit is contained in:
committed by
Sebastián Franco
parent
f6f4c18ff9
commit
5353cd8626
@@ -1833,7 +1833,8 @@ public class DeviceProfile {
|
||||
workspacePageIndicatorHeight - mWorkspacePageIndicatorOverlapWorkspace;
|
||||
}
|
||||
int paddingTop = workspaceTopPadding + (mIsScalableGrid ? 0 : edgeMarginPx);
|
||||
int paddingSide = desiredWorkspaceHorizontalMarginPx;
|
||||
// On isFixedLandscapeMode on phones we already have padding because of the camera hole
|
||||
int paddingSide = inv.isFixedLandscapeMode ? 0 : desiredWorkspaceHorizontalMarginPx;
|
||||
|
||||
padding.set(paddingSide, paddingTop, paddingSide, paddingBottom);
|
||||
}
|
||||
@@ -1941,10 +1942,8 @@ public class DeviceProfile {
|
||||
startSpacing += getAdditionalQsbSpace();
|
||||
|
||||
if (inv.isFixedLandscapeMode) {
|
||||
endSpacing += workspacePadding.right + cellLayoutPaddingPx.right
|
||||
+ mInsets.right;
|
||||
startSpacing += workspacePadding.left + cellLayoutPaddingPx.left
|
||||
+ mInsets.left;
|
||||
endSpacing += mInsets.right;
|
||||
startSpacing += mInsets.left;
|
||||
}
|
||||
|
||||
hotseatBarPadding.top = hotseatBarTopPadding;
|
||||
|
||||
Reference in New Issue
Block a user