summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/AllApps3D.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher2/AllApps3D.java')
-rw-r--r--src/com/android/launcher2/AllApps3D.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/launcher2/AllApps3D.java b/src/com/android/launcher2/AllApps3D.java
index 66d2540fb..d06624d25 100644
--- a/src/com/android/launcher2/AllApps3D.java
+++ b/src/com/android/launcher2/AllApps3D.java
@@ -693,7 +693,12 @@ public class AllApps3D extends RSSurfaceView
}
public boolean onLongClick(View v) {
- if (mLocks != 0 || !isVisible()) {
+ // We don't accept long click events in these cases
+ // - If the workspace isn't ready to accept a drop
+ // - If we're not done loading (because we might be confused about which item
+ // to pick up
+ // - If we're not visible
+ if (!isVisible() || mLauncher.isWorkspaceLocked() || mLocks != 0) {
return true;
}
if (sRollo.checkClickOK() && mCurrentIconIndex == mDownIconIndex