mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Fix 2257802 - Screen unresponsive when you get a call while moving the shortcuts or widgets on home screen
This commit is contained in:
@@ -279,6 +279,13 @@ public class DragController {
|
||||
return mDragging;
|
||||
}
|
||||
|
||||
/**
|
||||
* Stop dragging without dropping.
|
||||
*/
|
||||
public void cancelDrag() {
|
||||
endDrag();
|
||||
}
|
||||
|
||||
private void endDrag() {
|
||||
if (mDragging) {
|
||||
mDragging = false;
|
||||
@@ -426,7 +433,7 @@ public class DragController {
|
||||
|
||||
break;
|
||||
case MotionEvent.ACTION_CANCEL:
|
||||
endDrag();
|
||||
cancelDrag();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -437,6 +437,7 @@ public final class Launcher extends Activity
|
||||
super.onPause();
|
||||
dismissPreview(mPreviousView);
|
||||
dismissPreview(mNextView);
|
||||
mDragController.cancelDrag();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user