summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Adam Powell <adamp@google.com> 2010-02-02 15:28:14 -0800
committer Adam Powell <adamp@google.com> 2010-02-03 11:31:10 -0800
commit732ebb1bc3d7760fd424b84e0235ea9946100102 (patch)
tree6d338a473cc955fb1afc19a3448c1a9851ac74fd
parent1fdaab2778340a74a32221f3e58acce2d3c95870 (diff)
Fixed a regression in View.cancelLongPress
-rw-r--r--core/java/android/view/View.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 31c9b08bdfe8..f5c465e6550e 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -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();
}
/**