Merge "launcher: correct the amount of padding for preview" into sc-v2-dev am: f952fd9256
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15547452 Change-Id: I1aa02ab7eb194e41a4ecce64a9d849c0d64c0fb6
This commit is contained in:
@@ -270,13 +270,13 @@ public class LauncherPreviewRenderer extends ContextWrapper
|
||||
CellLayout leftPanel = mRootView.findViewById(R.id.workspace_left);
|
||||
leftPanel.setPadding(mDp.workspacePadding.left + mDp.cellLayoutPaddingLeftRightPx,
|
||||
mDp.workspacePadding.top,
|
||||
mDp.workspacePadding.right + mDp.cellLayoutPaddingLeftRightPx,
|
||||
mDp.workspacePadding.right,
|
||||
mDp.workspacePadding.bottom);
|
||||
mWorkspaceScreens.put(LEFT_PANEL_ID, leftPanel);
|
||||
}
|
||||
|
||||
CellLayout firstScreen = mRootView.findViewById(R.id.workspace);
|
||||
firstScreen.setPadding(mDp.workspacePadding.left + mDp.cellLayoutPaddingLeftRightPx,
|
||||
firstScreen.setPadding(mDp.workspacePadding.left,
|
||||
mDp.workspacePadding.top,
|
||||
mDp.workspacePadding.right + mDp.cellLayoutPaddingLeftRightPx,
|
||||
mDp.workspacePadding.bottom);
|
||||
|
||||
Reference in New Issue
Block a user