mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Preventing screen rotations when dragging.
Change-Id: I6805c66f9aeec32bc7d597e99e1f62be0e2d0ab3
This commit is contained in:
@@ -328,6 +328,7 @@ public class CustomizePagedView extends PagedViewWithDraggableItems
|
||||
public void onDropCompleted(View target, boolean success) {
|
||||
resetCheckedGrandchildren();
|
||||
mLauncher.getWorkspace().onDragStopped();
|
||||
mLauncher.unlockScreenOrientation();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -500,6 +501,7 @@ public class CustomizePagedView extends PagedViewWithDraggableItems
|
||||
endChoiceMode();
|
||||
}
|
||||
boolean result = false;
|
||||
mLauncher.lockScreenOrientation();
|
||||
switch (mCustomizationType) {
|
||||
case WidgetCustomization: {
|
||||
// Get the widget preview as the drag representation
|
||||
|
||||
Reference in New Issue
Block a user