summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DragSource.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-12-13 19:37:10 -0800
committerSunny Goyal <sunnygoyal@google.com>2016-12-13 23:39:16 -0800
commit0f76b56865bd7b63bd21d53aaac47300396aa38f (patch)
tree1b5bd8b01b2860cc1597d6371056c288a199cb55 /src/com/android/launcher3/DragSource.java
parent466c4131d88fc951c8eaef7f1f7ade5ac91221e4 (diff)
downloadandroid_packages_apps_Trebuchet-0f76b56865bd7b63bd21d53aaac47300396aa38f.tar.gz
android_packages_apps_Trebuchet-0f76b56865bd7b63bd21d53aaac47300396aa38f.tar.bz2
android_packages_apps_Trebuchet-0f76b56865bd7b63bd21d53aaac47300396aa38f.zip
Refactoring FlingToDelete
> Moving all fling related logic to FlingToDeleteHelper from DragController > Removing fling related methods from DragSource and DropTarget > Moving fling animation logic from DeleteDropTarget to FlingAnimation > Simplifying DropTargetBar to directly look for all valid drop targets. This makes it easier to add new DropTarget in xml. Change-Id: I7214d2d30c907ab93c80d92d9f9be6dda2d63354
Diffstat (limited to 'src/com/android/launcher3/DragSource.java')
-rw-r--r--src/com/android/launcher3/DragSource.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/com/android/launcher3/DragSource.java b/src/com/android/launcher3/DragSource.java
index 2fb495fdd..dcd8f589a 100644
--- a/src/com/android/launcher3/DragSource.java
+++ b/src/com/android/launcher3/DragSource.java
@@ -27,11 +27,6 @@ import com.android.launcher3.logging.UserEventDispatcher.LogContainerProvider;
public interface DragSource extends LogContainerProvider {
/**
- * @return whether items dragged from this source supports
- */
- boolean supportsFlingToDelete();
-
- /**
* @return whether items dragged from this source supports 'App Info'
*/
boolean supportsAppInfoDropTarget();
@@ -48,13 +43,6 @@ public interface DragSource extends LogContainerProvider {
float getIntrinsicIconScaleFactor();
/**
- * A callback specifically made back to the source after an item from this source has been flung
- * to be deleted on a DropTarget. In such a situation, this method will be called after
- * onDropCompleted, and more importantly, after the fling animation has completed.
- */
- void onFlingToDeleteCompleted();
-
- /**
* A callback made back to the source after an item from this source has been dropped on a
* DropTarget.
*/