From 15ab1c63e0289bf59544dd8edf783e398b7bff3e Mon Sep 17 00:00:00 2001 From: Raj Yengisetty Date: Mon, 10 Nov 2014 10:35:01 -0800 Subject: Fixed DynamicProfile for Live Settings support Change-Id: Ic2ad0b315752b9f625356800c5ed7e15cdf9783b --- src/com/android/launcher3/LauncherAppState.java | 2 ++ 1 file changed, 2 insertions(+) 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(); -- cgit v1.2.3