Merge "Preventing activity from rotating while the user is dragging an item. (Bug 6240922)" into jb-dev
This commit is contained in:
commit
a706b090ce
3 files changed
+13
-17
No files matched your search
@@ -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