Merge "Preventing activity from rotating while the user is dragging an item. (Bug 6240922)" into jb-dev

This commit is contained in:
Winson Chung authored and Android (Google) Code Review committed 2012-04-26 16:29:56 -07:00
commit a706b090ce
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();
}
/**