Skip to content

Commit cd92db8

Browse files
adampAndroid (Google) Code Review
authored andcommitted
Merge "Remove View's long press callbacks when ACTION_CANCEL is received" into jb-mr1-dev
2 parents a4be1b2 + 5311c44 commit cd92db8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/java/android/view/View.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8243,6 +8243,7 @@ public boolean onTouchEvent(MotionEvent event) {
82438243
case MotionEvent.ACTION_CANCEL:
82448244
setPressed(false);
82458245
removeTapCallback();
8246+
removeLongPressCallback();
82468247
break;
82478248

82488249
case MotionEvent.ACTION_MOVE:

0 commit comments

Comments
 (0)