summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DragSource.java
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2013-11-25 17:01:34 +0000
committerDanesh M <daneshm90@gmail.com>2014-06-06 22:54:20 -0700
commitfd5427342d2bdd10bb45e9c54665bed9ec5424e8 (patch)
treebcf8444dbc909deebc485f9dd5735a2fe9d5a3d4 /src/com/android/launcher3/DragSource.java
parent88eb58f2f75c42451b565876d29f23a61db983ce (diff)
downloadandroid_packages_apps_Trebuchet-fd5427342d2bdd10bb45e9c54665bed9ec5424e8.tar.gz
android_packages_apps_Trebuchet-fd5427342d2bdd10bb45e9c54665bed9ec5424e8.tar.bz2
android_packages_apps_Trebuchet-fd5427342d2bdd10bb45e9c54665bed9ec5424e8.zip
Generalize support for 'App Info', 'Uninstall' and 'Delete'
This allows other DragSource's to allow this behaviour, instead of it being tied to specific source types. Change-Id: I06b7c39b1b34a0ae141245bcc13b6a0873a4c0fd
Diffstat (limited to 'src/com/android/launcher3/DragSource.java')
-rw-r--r--src/com/android/launcher3/DragSource.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/launcher3/DragSource.java b/src/com/android/launcher3/DragSource.java
index cca9ab1a4..7369eeac2 100644
--- a/src/com/android/launcher3/DragSource.java
+++ b/src/com/android/launcher3/DragSource.java
@@ -30,6 +30,17 @@ public interface DragSource {
*/
boolean supportsFlingToDelete();
+ /**
+ * @return whether items dragged from this source supports 'App Info'
+ */
+ boolean supportsAppInfoDropTarget();
+
+ /**
+ * @return whether items dragged from this source supports 'Delete' drop target (e.g. to remove
+ * a shortcut.
+ */
+ boolean supportsDeleteDropTarget();
+
/*
* @return the scale of the icons over the workspace icon size
*/