Preventing activity from rotating while the user is dragging an item. (Bug 6240922)

Change-Id: Id487e8809c059cecb3310afe098edd0eaf085c90
This commit is contained in:
Winson Chung
2012-04-26 15:58:01 -07:00
parent 840ebf6277
commit 641d71d6da
3 changed files with 13 additions and 17 deletions
@@ -706,7 +706,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
// Start the drag
alphaClipPaint = null;
mLauncher.lockScreenOrientationOnLargeUI();
mLauncher.lockScreenOrientation();
mLauncher.getWorkspace().onDragStartedWithItem(createItemInfo, outline, alphaClipPaint);
mDragController.startDrag(image, preview, this, createItemInfo,
DragController.DRAG_ACTION_COPY, null, scale);
@@ -758,7 +758,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
// drop in Workspace
mLauncher.exitSpringLoadedDragMode();
}
mLauncher.unlockScreenOrientationOnLargeUI();
mLauncher.unlockScreenOrientation();
}
@Override