am 88b756cd: Merge "Don\'t show the touch highlight for double taps" into jb-dev

* commit '88b756cd249d1dd4aefb92a73a65fa76cd8ef0d5':
  Don't show the touch highlight for double taps
This commit is contained in:
John Reck
2012-05-17 20:05:49 -07:00
committed by Android Git Automerger

View File

@@ -553,12 +553,17 @@ final class WebViewInputDispatcher {
mIsTapCandidate = true;
mInitialDownX = event.getX();
mInitialDownY = event.getY();
scheduleShowTapHighlightLocked();
enqueueHitTestLocked(event);
if (mIsDoubleTapCandidate) {
hideTapCandidateLocked();
} else {
scheduleShowTapHighlightLocked();
}
} else if (action == MotionEvent.ACTION_UP) {
unscheduleLongPressLocked();
if (isClickCandidateLocked(event)) {
if (mIsDoubleTapCandidate) {
hideTapCandidateLocked();
enqueueDoubleTapLocked(event);
} else {
scheduleClickLocked();