diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher3/LauncherAppState.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/launcher3/LauncherAppState.java b/src/com/android/launcher3/LauncherAppState.java index 71411c29e..128065ab6 100644 --- a/src/com/android/launcher3/LauncherAppState.java +++ b/src/com/android/launcher3/LauncherAppState.java @@ -192,10 +192,12 @@ public class LauncherAppState implements DeviceProfile.DeviceProfileCallbacks { DeviceProfile initDynamicGrid(Context context, int minWidth, int minHeight, int width, int height, int availableWidth, int availableHeight) { + mDynamicGrid = new DynamicGrid(context, context.getResources(), minWidth, minHeight, width, height, availableWidth, availableHeight); + mDynamicGrid.getDeviceProfile().addCallback(this); // Update the icon size DeviceProfile grid = mDynamicGrid.getDeviceProfile(); |