Fixed a regression in View.cancelLongPress

This commit is contained in:
Adam Powell
2010-02-02 15:28:14 -08:00
parent 1fdaab2778
commit 732ebb1bc3

View File

@@ -4323,6 +4323,13 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
*/
public void cancelLongPress() {
removeLongPressCallback();
/*
* The prepressed state handled by the tap callback is a display
* construct, but the tap callback will post a long press callback
* less its own timeout. Remove it here.
*/
removeTapCallback();
}
/**