diff options
author | Winson Chung <winsonc@google.com> | 2013-08-22 16:15:50 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2013-08-23 12:13:02 -0700 |
commit | 892c74d460ad98c6306420e1127c9aa3e505ba25 (patch) | |
tree | 5abbb89efdad34335ef876284d520f6c7a705e3f /src/com/android/launcher3/LauncherAppState.java | |
parent | fe14e04987a8baf77f0ffbd6d66839f33a4f0474 (diff) | |
download | android_packages_apps_Trebuchet-892c74d460ad98c6306420e1127c9aa3e505ba25.tar.gz android_packages_apps_Trebuchet-892c74d460ad98c6306420e1127c9aa3e505ba25.tar.bz2 android_packages_apps_Trebuchet-892c74d460ad98c6306420e1127c9aa3e505ba25.zip |
Fixing folders to always show in view, removing old assets and references to LauncherModel count.
Diffstat (limited to 'src/com/android/launcher3/LauncherAppState.java')
-rw-r--r-- | src/com/android/launcher3/LauncherAppState.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/com/android/launcher3/LauncherAppState.java b/src/com/android/launcher3/LauncherAppState.java index 53d2ec50f..c8b208b28 100644 --- a/src/com/android/launcher3/LauncherAppState.java +++ b/src/com/android/launcher3/LauncherAppState.java @@ -164,21 +164,22 @@ public class LauncherAppState { return SHARED_PREFERENCES_KEY; } - DeviceProfile initDynamicGrid(Context context, int minWidth, int minHeight, int width, int height) { + DeviceProfile initDynamicGrid(Context context, int minWidth, int minHeight, + int width, int height, + int availableWidth, int availableHeight) { boolean created = false; if (mDynamicGrid == null) { mDynamicGrid = new DynamicGrid(context.getResources(), - minWidth, minHeight, width, height); + minWidth, minHeight, width, height, + availableWidth, availableHeight); created = true; } - DeviceProfile grid = mDynamicGrid.getDeviceProfile(); - if (created) { - LauncherModel.updateWorkspaceLayoutCells((int) grid.numColumns, (int) grid.numRows); - } // Update the icon size + DeviceProfile grid = mDynamicGrid.getDeviceProfile(); Utilities.setIconSize(grid.iconSizePx); - grid.updateFromConfiguration(context.getResources(), width, height); + grid.updateFromConfiguration(context.getResources(), width, height, + availableWidth, availableHeight); return grid; } DynamicGrid getDynamicGrid() { |