Fixing small bug where folder could not be created in dock.
- Ensuring default workspace items aren't overlapping. Change-Id: I53803bdd61e1e956b9582b1332cde37663cb8578
This commit is contained in:
1 parent
fc53cd22c9
commit
ec9a0a4ca5
2 files changed
+9
-5
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user