Merge changes from topic "am-a3d615af-02aa-451c-b89c-c1f59300b566" into ub-launcher3-master
* changes:
[automerger] Fix bug where add to folder fails even when folder creation animation runs. am: 36f6359c21
Fix bug where add to folder fails even when folder creation animation runs.
This commit is contained in:
commit
c73a972ce9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue