diff options
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/DeleteDropTarget.java')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/DeleteDropTarget.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/trebuchet/DeleteDropTarget.java b/src/com/cyanogenmod/trebuchet/DeleteDropTarget.java index 2cc872a56..c4bacfeb8 100644 --- a/src/com/cyanogenmod/trebuchet/DeleteDropTarget.java +++ b/src/com/cyanogenmod/trebuchet/DeleteDropTarget.java @@ -131,6 +131,9 @@ public class DeleteDropTarget extends ButtonDropTarget { private boolean isWorkspaceFolder(DragSource source, Object info) { return (source instanceof Workspace) && (info instanceof FolderInfo); } + private boolean isAllAppsButton(Object info) { + return (info instanceof AllAppsButtonInfo); + } private void setHoverColor() { setTextColor(mHoverColor); @@ -147,6 +150,10 @@ public class DeleteDropTarget extends ButtonDropTarget { @Override public void onDragStart(DragSource source, Object info, int dragAction) { + // If it's the AllApps button, from Hotseat, don't do anything. + if (isAllAppsButton(info)) { + return; + } boolean isUninstall = false; // If we are dragging an application from AppsCustomize, only show the uninstall control if we |