diff options
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/SearchDropTargetBar.java')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/SearchDropTargetBar.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/trebuchet/SearchDropTargetBar.java b/src/com/cyanogenmod/trebuchet/SearchDropTargetBar.java index 78112556e..2a96517d3 100644 --- a/src/com/cyanogenmod/trebuchet/SearchDropTargetBar.java +++ b/src/com/cyanogenmod/trebuchet/SearchDropTargetBar.java @@ -188,11 +188,21 @@ public class SearchDropTargetBar extends FrameLayout implements DragController.D return sTransitionOutDuration; } + private boolean isAllAppsButton(Object info) { + return (info instanceof AllAppsButtonInfo); + } + /* * DragController.DragListener implementation */ @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)) { + deferOnDragEnd(); + return; + } + // Animate out the QSB search bar, and animate in the drop target bar prepareStartAnimation(mDropTargetBar); mDropTargetBarAnim.start(); |