Merge "Fix bug where add to folder fails even when folder creation animation runs." into ub-launcher3-edmonton-polish

This commit is contained in:
Jonathan Miranda authored and Android (Google) Code Review committed 2018-06-14 23:14:15 +00:00
commit 3871e72686
1 file changed
+6 -1
+6 -1
View File
@@ -2387,7 +2387,12 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
private void manageFolderFeedback(CellLayout targetLayout,
int[] targetCell, float distance, DragObject dragObject) {
if (distance > mMaxDistanceForFolderCreation) return;
if (distance > mMaxDistanceForFolderCreation) {
if (mDragMode != DRAG_MODE_NONE) {
setDragMode(DRAG_MODE_NONE);
}
return;
}
final View dragOverView = mDragTargetLayout.getChildAt(mTargetCell[0], mTargetCell[1]);
ItemInfo info = dragObject.dragInfo;