diff options
author | Raj Yengisetty <rajesh@cyngn.com> | 2014-06-07 13:08:54 -0700 |
---|---|---|
committer | Raj Yengisetty <rajesh@cyngn.com> | 2014-06-07 13:08:54 -0700 |
commit | 256815a686f55b989242e051e6d3fc8398835bf9 (patch) | |
tree | 7003dbd54aab987e41202b36d4412d6cafb9ba27 /src/com/android/launcher3/LauncherAppState.java | |
parent | 27d5c94c5c57bfb171f518f1e7cebae33c1c22da (diff) | |
download | android_packages_apps_Trebuchet-256815a686f55b989242e051e6d3fc8398835bf9.tar.gz android_packages_apps_Trebuchet-256815a686f55b989242e051e6d3fc8398835bf9.tar.bz2 android_packages_apps_Trebuchet-256815a686f55b989242e051e6d3fc8398835bf9.zip |
Fixed DynamicProfile for Live Settings support
Diffstat (limited to 'src/com/android/launcher3/LauncherAppState.java')
-rw-r--r-- | src/com/android/launcher3/LauncherAppState.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/com/android/launcher3/LauncherAppState.java b/src/com/android/launcher3/LauncherAppState.java index af1cdf588..50ff612e9 100644 --- a/src/com/android/launcher3/LauncherAppState.java +++ b/src/com/android/launcher3/LauncherAppState.java @@ -199,13 +199,12 @@ public class LauncherAppState implements DeviceProfile.DeviceProfileCallbacks { DeviceProfile initDynamicGrid(Context context, int minWidth, int minHeight, int width, int height, int availableWidth, int availableHeight) { - if (mDynamicGrid == null) { - mDynamicGrid = new DynamicGrid(context, - context.getResources(), - minWidth, minHeight, width, height, - availableWidth, availableHeight); - mDynamicGrid.getDeviceProfile().addCallback(this); - } + + mDynamicGrid = new DynamicGrid(context, + context.getResources(), + minWidth, minHeight, width, height, + availableWidth, availableHeight); + mDynamicGrid.getDeviceProfile().addCallback(this); // Update the icon size DeviceProfile grid = mDynamicGrid.getDeviceProfile(); |