summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/popup/PopupContainerWithArrow.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-10-06 13:29:57 -0700
committerSunny Goyal <sunnygoyal@google.com>2017-10-16 13:06:52 -0700
commit1797af41d162413dc98c33fab8ba19f96b63874b (patch)
treea9003b1952e98db0ec53dab673e00499e46bb6f7 /src/com/android/launcher3/popup/PopupContainerWithArrow.java
parentcbdfc598fae13f5aa7f7263351872d160004fbe7 (diff)
downloadpackages_apps_Trebuchet-1797af41d162413dc98c33fab8ba19f96b63874b.tar.gz
packages_apps_Trebuchet-1797af41d162413dc98c33fab8ba19f96b63874b.tar.bz2
packages_apps_Trebuchet-1797af41d162413dc98c33fab8ba19f96b63874b.zip
Cleaning up drag state management.
When the drag is started, the UI automatically goes into spring loaded mode. On a successful drop, it is the responsibility of the {@link DropTarget} to exit out of the spring loaded mode. If the drop was cancelled for some reason, the UI will automatically exit out of this mode. Bug: 34692289 Change-Id: Ic611739a43bb8d9279b587aaee3039326c143e8b
Diffstat (limited to 'src/com/android/launcher3/popup/PopupContainerWithArrow.java')
-rw-r--r--src/com/android/launcher3/popup/PopupContainerWithArrow.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/com/android/launcher3/popup/PopupContainerWithArrow.java b/src/com/android/launcher3/popup/PopupContainerWithArrow.java
index 68b547d88..4435afb8f 100644
--- a/src/com/android/launcher3/popup/PopupContainerWithArrow.java
+++ b/src/com/android/launcher3/popup/PopupContainerWithArrow.java
@@ -39,6 +39,7 @@ import android.view.View;
import com.android.launcher3.BubbleTextView;
import com.android.launcher3.DragSource;
import com.android.launcher3.DropTarget;
+import com.android.launcher3.DropTarget.DragObject;
import com.android.launcher3.ItemInfo;
import com.android.launcher3.Launcher;
import com.android.launcher3.LauncherAnimUtils;
@@ -487,14 +488,7 @@ public class PopupContainerWithArrow extends BaseActionPopup<BubbleTextView> imp
}
@Override
- public void onDropCompleted(View target, DropTarget.DragObject d, boolean isFlingToDelete,
- boolean success) {
- if (!success) {
- d.dragView.remove();
- mLauncher.showWorkspace(true);
- mLauncher.getDropTargetBar().onDragEnd();
- }
- }
+ public void onDropCompleted(View target, DragObject d, boolean success) { }
@Override
public void onDragStart(DropTarget.DragObject dragObject, DragOptions options) {