Fixing bug which locks orientation inadvertently

Change-Id: I50dfdf6a6d1d4214e88931b3f623bc41cab333c2
This commit is contained in:
Adam Cohen
2011-07-17 18:06:55 -07:00
parent 3384c7be3c
commit 95383fe41d
+2 -2
View File
@@ -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;
}