diff options
author | Mathew Inwood <mathewi@google.com> | 2013-11-25 17:01:34 +0000 |
---|---|---|
committer | Mathew Inwood <mathewi@google.com> | 2013-11-28 10:17:07 +0000 |
commit | 1eeb3fc9d874d98dfb43883d17efb4202d83d88a (patch) | |
tree | 86e1bc78a3fb98957bc3a3a61b4b60f2b020cf99 /src/com/android/launcher3/InfoDropTarget.java | |
parent | 0a23daaca14ab7fd107ee3e4043b5793760e02c1 (diff) | |
download | android_packages_apps_Trebuchet-1eeb3fc9d874d98dfb43883d17efb4202d83d88a.tar.gz android_packages_apps_Trebuchet-1eeb3fc9d874d98dfb43883d17efb4202d83d88a.tar.bz2 android_packages_apps_Trebuchet-1eeb3fc9d874d98dfb43883d17efb4202d83d88a.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/InfoDropTarget.java')
-rw-r--r-- | src/com/android/launcher3/InfoDropTarget.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/com/android/launcher3/InfoDropTarget.java b/src/com/android/launcher3/InfoDropTarget.java index 2ad43b6ff..374238c49 100644 --- a/src/com/android/launcher3/InfoDropTarget.java +++ b/src/com/android/launcher3/InfoDropTarget.java @@ -62,10 +62,6 @@ public class InfoDropTarget extends ButtonDropTarget { } } - private boolean isFromAllApps(DragSource source) { - return (source instanceof AppsCustomizePagedView); - } - @Override public boolean acceptDrop(DragObject d) { // acceptDrop is called just before onDrop. We do the work here, rather than @@ -93,7 +89,7 @@ public class InfoDropTarget extends ButtonDropTarget { boolean isVisible = true; // Hide this button unless we are dragging something from AllApps - if (!isFromAllApps(source)) { + if (!source.supportsAppInfoDropTarget()) { isVisible = false; } |