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
+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();
}
/**