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

Change-Id: Id487e8809c059cecb3310afe098edd0eaf085c90
This commit is contained in:
Winson Chung committed 2012-04-26 15:58:34 -07:00
1 parent 840ebf6277
commit 641d71d6da
3 files changed
+13 -17

No files matched your search

+2 -2
View File
@@ -375,13 +375,13 @@ public class Workspace extends SmoothPagedView
public void onDragStart(DragSource source, Object info, int dragAction) {
mIsDragOccuring = true;
updateChildrenLayersEnabled();
mLauncher.lockScreenOrientationOnLargeUI();
mLauncher.lockScreenOrientation();
}
public void onDragEnd() {
mIsDragOccuring = false;
updateChildrenLayersEnabled();
mLauncher.unlockScreenOrientationOnLargeUI();
mLauncher.unlockScreenOrientation();
}
/**