Merge "Fix bug 3362680 - calendar crash while tabbing among views" into honeycomb

This commit is contained in:
Adam Powell
2011-01-21 15:49:46 -08:00
committed by Android (Google) Code Review

View File

@@ -5117,7 +5117,16 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
removeCallbacks(mPendingCheckForLongPress);
}
}
/**
* Remove the pending click action
*/
private void removePerformClickCallback() {
if (mPerformClick != null) {
removeCallbacks(mPerformClick);
}
}
/**
* Remove the prepress detection timer.
*/
@@ -7579,6 +7588,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
removeUnsetPressCallback();
removeLongPressCallback();
removePerformClickCallback();
destroyDrawingCache();