am 24b6fd85: Fix 2257802 - Screen unresponsive when you get a call while moving the shortcuts or widgets on home screen

Merge commit '24b6fd854f75f21700a330c2f0d11938e5dfeab6' into eclair-mr2

* commit '24b6fd854f75f21700a330c2f0d11938e5dfeab6':
  Fix 2257802 - Screen unresponsive when you get a call while moving the shortcuts or widgets on home screen
This commit is contained in:
Joe Onorato
2009-11-12 14:29:32 -08:00
committed by Android Git Automerger
2 changed files with 9 additions and 1 deletions
@@ -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;
+1
View File
@@ -437,6 +437,7 @@ public final class Launcher extends Activity
super.onPause();
dismissPreview(mPreviousView);
dismissPreview(mNextView);
mDragController.cancelDrag();
}
@Override