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
This commit is contained in:
Mathew Inwood
2013-11-25 17:01:34 +00:00
parent 0a23daaca1
commit 1eeb3fc9d8
6 changed files with 48 additions and 8 deletions

View File

@@ -4212,6 +4212,16 @@ public class Workspace extends SmoothPagedView
return true;
}
@Override
public boolean supportsAppInfoDropTarget() {
return false;
}
@Override
public boolean supportsDeleteDropTarget() {
return true;
}
@Override
public void onFlingToDelete(DragObject d, int x, int y, PointF vec) {
// Do nothing