diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java index badd1c456d..f277926580 100644 --- a/src/com/android/launcher3/DeviceProfile.java +++ b/src/com/android/launcher3/DeviceProfile.java @@ -1002,6 +1002,9 @@ public class DeviceProfile { iconCenterVertically = mIsScalableGrid || mIsResponsiveGrid; if (mIsResponsiveGrid) { + iconSizePx = mResponsiveWorkspaceCellSpec.getIconSize(); + iconTextSizePx = mResponsiveWorkspaceCellSpec.getIconTextSize(); + mIconDrawablePaddingOriginalPx = mResponsiveWorkspaceCellSpec.getIconDrawablePadding(); updateIconSize(1f, res); updateWorkspacePadding(); return 0; @@ -1096,10 +1099,6 @@ public class DeviceProfile { cellLayoutBorderSpacePx = getCellLayoutBorderSpace(inv, scale); if (mIsResponsiveGrid) { - iconSizePx = mResponsiveWorkspaceCellSpec.getIconSize(); - iconTextSizePx = mResponsiveWorkspaceCellSpec.getIconTextSize(); - mIconDrawablePaddingOriginalPx = mResponsiveWorkspaceCellSpec.getIconDrawablePadding(); - cellWidthPx = mResponsiveWorkspaceWidthSpec.getCellSizePx(); cellHeightPx = mResponsiveWorkspaceHeightSpec.getCellSizePx();