From e3406a2de3d73ceeda5bcf8e7ce4318d05fe70c8 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Thu, 3 Sep 2009 14:36:25 -0700 Subject: [PATCH] better drag beha vior --- src/com/android/launcher2/AllAppsView.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java index 9967332dee..dcaaaa1182 100644 --- a/src/com/android/launcher2/AllAppsView.java +++ b/src/com/android/launcher2/AllAppsView.java @@ -165,6 +165,10 @@ public class AllAppsView extends RSSurfaceView { super.onTouchEvent(ev); + if (mRollo.mState.visible == 0) { + return false; + } + mTouchHandler = mFlingHandler; /* int action = ev.getAction(); @@ -270,7 +274,8 @@ public class AllAppsView extends RSSurfaceView mDragController.startDrag(app.iconBitmap, screenX, screenY, left, top, Defines.ICON_WIDTH_PX, Defines.ICON_HEIGHT_PX, this, app, DragController.DRAG_ACTION_COPY); - // close me! + + mLauncher.closeAllAppsDialog(true); } return true; }