diff options
| author | Adam Powell <adamp@google.com> | 2011-01-21 15:49:46 -0800 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-21 15:49:46 -0800 |
| commit | 5fc3c84f5c465d3f0f435037bd5b92fa8da1f2c2 (patch) | |
| tree | 44708813610de3e1e4f0c9af2f78f608bdaced99 /core/java/android | |
| parent | c4cc3ea48add3b7a63a1a97fc3a4c89b24217604 (diff) | |
| parent | 3cb8b638c49b767354b62d853067ae8290ff7e80 (diff) | |
Merge "Fix bug 3362680 - calendar crash while tabbing among views" into honeycomb
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/view/View.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 811a633920de..b41687e4dabe 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -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(); |
