diff options
Diffstat (limited to 'src/com/android/launcher2/Workspace.java')
-rw-r--r-- | src/com/android/launcher2/Workspace.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index c5c9c282c..ba290d3f2 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -288,11 +288,13 @@ public class Workspace extends SmoothPagedView public void onDragStart(DragSource source, Object info, int dragAction) { mIsDragOccuring = true; updateChildrenLayersEnabled(); + mLauncher.lockScreenOrientation(); } public void onDragEnd() { mIsDragOccuring = false; updateChildrenLayersEnabled(); + mLauncher.unlockScreenOrientation(); } /** @@ -2004,7 +2006,6 @@ public class Workspace extends SmoothPagedView mDragController.startDrag(b, dragLayerX, dragLayerY, source, child.getTag(), DragController.DRAG_ACTION_MOVE, dragRect); b.recycle(); - mLauncher.lockScreenOrientation(); } void addApplicationShortcut(ShortcutInfo info, int screen, int cellX, int cellY, @@ -3034,7 +3035,6 @@ public class Workspace extends SmoothPagedView doDragExit(null); ((CellLayout) getChildAt(mDragInfo.screen)).onDropChild(mDragInfo.cell); } - mLauncher.unlockScreenOrientation(); mDragOutline = null; mDragInfo = null; } |