From 400438b79fe412cb625c96297edeea9c6155349e Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Sun, 16 Jan 2011 17:53:48 -0800 Subject: Preventing screen rotations when dragging. Change-Id: I6805c66f9aeec32bc7d597e99e1f62be0e2d0ab3 --- src/com/android/launcher2/AllAppsPagedView.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/com/android/launcher2/AllAppsPagedView.java') diff --git a/src/com/android/launcher2/AllAppsPagedView.java b/src/com/android/launcher2/AllAppsPagedView.java index c9c069f12..3e9731532 100644 --- a/src/com/android/launcher2/AllAppsPagedView.java +++ b/src/com/android/launcher2/AllAppsPagedView.java @@ -269,6 +269,7 @@ public class AllAppsPagedView extends PagedViewWithDraggableItems implements All } // Start the drag + mLauncher.lockScreenOrientation(); mLauncher.getWorkspace().onDragStartedWithItemSpans(1, 1, b); mDragController.startDrag(v, b, this, app, DragController.DRAG_ACTION_COPY, null); b.recycle(); @@ -287,6 +288,7 @@ public class AllAppsPagedView extends PagedViewWithDraggableItems implements All } tearDownDragMode(); mLauncher.getWorkspace().onDragStopped(); + mLauncher.unlockScreenOrientation(); } @Override -- cgit v1.2.3