Fix folder creation bug 5037239

Change-Id: I0e629b186c94ca3ccaa188de94846d2bbbca83a4
This commit is contained in:
Adam Cohen
2011-07-15 18:19:15 -07:00
parent d8d375d99a
commit 7494c56166
+2 -2
View File
@@ -2072,8 +2072,8 @@ public class Workspace extends SmoothPagedView
boolean considerTimeout) {
View dropOverView = target.getChildAt(targetCell[0], targetCell[1]);
boolean hasntMoved = mDragInfo != null
&& (mDragInfo.cellX == targetCell[0] && mDragInfo.cellY == targetCell[1]);
boolean hasntMoved = mDragInfo != null && (mDragInfo.cellX == targetCell[0] &&
mDragInfo.cellY == targetCell[1]) && mDragInfo.screen == indexOfChild(target);
if (dropOverView == null || hasntMoved || (considerTimeout && !mCreateUserFolderOnDrop)) {
return false;