diff --git a/res/xml/default_workspace.xml b/res/xml/default_workspace.xml index 9189c76e47..0e96a6771e 100644 --- a/res/xml/default_workspace.xml +++ b/res/xml/default_workspace.xml @@ -45,21 +45,21 @@ launcher:className="com.android.contacts.activities.DialtactsActivity" launcher:container="-101" launcher:screen="1" - launcher:x="0" + launcher:x="1" launcher:y="0" /> diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index 5309423b79..b86fa41484 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -2120,8 +2120,12 @@ public class Workspace extends SmoothPagedView boolean createUserFolderIfNecessary(View newView, long container, CellLayout target, int[] targetCell, boolean external, DragView dragView, Runnable postAnimationRunnable) { View v = target.getChildAt(targetCell[0], targetCell[1]); - boolean hasntMoved = mDragInfo != null - && (mDragInfo.cellX == targetCell[0] && mDragInfo.cellY == targetCell[1]); + boolean hasntMoved = false; + if (mDragInfo != null) { + CellLayout cellParent = getParentCellLayoutForView(mDragInfo.cell); + hasntMoved = (mDragInfo.cellX == targetCell[0] && + mDragInfo.cellY == targetCell[1]) && (cellParent == target); + } if (v == null || hasntMoved || !mCreateUserFolderOnDrop) return false; mCreateUserFolderOnDrop = false;