Preventing activity from rotating while the user is dragging an item. (Bug 6240922)
Change-Id: Id487e8809c059cecb3310afe098edd0eaf085c90
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user