diff options
Diffstat (limited to 'src/com/android/launcher3/PagedViewCellLayout.java')
-rw-r--r-- | src/com/android/launcher3/PagedViewCellLayout.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/launcher3/PagedViewCellLayout.java b/src/com/android/launcher3/PagedViewCellLayout.java index 9aa246793..38fd1ed00 100644 --- a/src/com/android/launcher3/PagedViewCellLayout.java +++ b/src/com/android/launcher3/PagedViewCellLayout.java @@ -59,11 +59,11 @@ public class PagedViewCellLayout extends ViewGroup implements Page { setAlwaysDrawnWithCacheEnabled(false); // setup default cell parameters + LauncherAppState app = LauncherAppState.getInstance(); + DeviceProfile grid = app.getDynamicGrid().getDeviceProfile(); Resources resources = context.getResources(); - mOriginalCellWidth = mCellWidth = - resources.getDimensionPixelSize(R.dimen.apps_customize_cell_width); - mOriginalCellHeight = mCellHeight = - resources.getDimensionPixelSize(R.dimen.apps_customize_cell_height); + mOriginalCellWidth = mCellWidth = grid.cellWidthPx; + mOriginalCellHeight = mCellHeight = grid.cellHeightPx; mCellCountX = LauncherModel.getCellCountX(); mCellCountY = LauncherModel.getCellCountY(); mOriginalWidthGap = mOriginalHeightGap = mWidthGap = mHeightGap = -1; |