am e1a71134: am 24b6fd85: Fix 2257802 - Screen unresponsive when you get a call while moving the shortcuts or widgets on home screen
Merge commit 'e1a71134e3227b43592b9699a716eba9c8669165' into eclair-mr2-plus-aosp * commit 'e1a71134e3227b43592b9699a716eba9c8669165': 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;
|
return mDragging;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stop dragging without dropping.
|
||||||
|
*/
|
||||||
|
public void cancelDrag() {
|
||||||
|
endDrag();
|
||||||
|
}
|
||||||
|
|
||||||
private void endDrag() {
|
private void endDrag() {
|
||||||
if (mDragging) {
|
if (mDragging) {
|
||||||
mDragging = false;
|
mDragging = false;
|
||||||
@@ -426,7 +433,7 @@ public class DragController {
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case MotionEvent.ACTION_CANCEL:
|
case MotionEvent.ACTION_CANCEL:
|
||||||
endDrag();
|
cancelDrag();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -437,6 +437,7 @@ public final class Launcher extends Activity
|
|||||||
super.onPause();
|
super.onPause();
|
||||||
dismissPreview(mPreviousView);
|
dismissPreview(mPreviousView);
|
||||||
dismissPreview(mNextView);
|
dismissPreview(mNextView);
|
||||||
|
mDragController.cancelDrag();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user