diff options
author | Raj Yengisetty <rajesh@cyngn.com> | 2014-11-10 10:35:01 -0800 |
---|---|---|
committer | Adnan <adnan@cyngn.com> | 2014-11-19 15:53:58 -0800 |
commit | 15ab1c63e0289bf59544dd8edf783e398b7bff3e (patch) | |
tree | 469ec6982aee31cab0cab31c776d16db753ee7c4 | |
parent | 06646832ebf924c8f80182c66f53ecc13e1ad0f5 (diff) | |
download | android_packages_apps_Trebuchet-15ab1c63e0289bf59544dd8edf783e398b7bff3e.tar.gz android_packages_apps_Trebuchet-15ab1c63e0289bf59544dd8edf783e398b7bff3e.tar.bz2 android_packages_apps_Trebuchet-15ab1c63e0289bf59544dd8edf783e398b7bff3e.zip |
Fixed DynamicProfile for Live Settings support
Change-Id: Ic2ad0b315752b9f625356800c5ed7e15cdf9783b
-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(); |