diff options
Diffstat (limited to 'src/com/android/launcher3/Folder.java')
-rw-r--r-- | src/com/android/launcher3/Folder.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/launcher3/Folder.java b/src/com/android/launcher3/Folder.java index 7b15e9edf..9eafc2231 100644 --- a/src/com/android/launcher3/Folder.java +++ b/src/com/android/launcher3/Folder.java @@ -1066,7 +1066,7 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList Runnable onCompleteRunnable = new Runnable() { @Override public void run() { - CellLayout cellLayout = mLauncher.getCellLayout(mInfo.container, mInfo.screen); + CellLayout cellLayout = mLauncher.getCellLayout(mInfo.container, mInfo.screenId); View child = null; // Move the item from the folder to the workspace, in the position of the folder @@ -1075,7 +1075,7 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList child = mLauncher.createShortcut(R.layout.application, cellLayout, finalItem); LauncherModel.addOrMoveItemInDatabase(mLauncher, finalItem, mInfo.container, - mInfo.screen, mInfo.cellX, mInfo.cellY); + mInfo.screenId, mInfo.cellX, mInfo.cellY); } if (getItemCount() <= 1) { // Remove the folder @@ -1089,7 +1089,7 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList // We add the child after removing the folder to prevent both from existing at // the same time in the CellLayout. if (child != null) { - mLauncher.getWorkspace().addInScreen(child, mInfo.container, mInfo.screen, + mLauncher.getWorkspace().addInScreen(child, mInfo.container, mInfo.screenId, mInfo.cellX, mInfo.cellY, mInfo.spanX, mInfo.spanY); } } |