From 9a5b592b27158b6fb8b7a89157bb995b182899d8 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Fri, 4 Feb 2011 14:28:29 +0900 Subject: [PATCH] Skip sudden jump detection on distinct multitouch device Bug: 3400448 Change-Id: I37150d624b73ed089875a905fe04c5b8b3ecfa0a --- .../com/android/inputmethod/keyboard/LatinKeyboardView.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java b/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java index af2fd5ce1..e7246dd6e 100644 --- a/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java +++ b/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java @@ -141,6 +141,9 @@ public class LatinKeyboardView extends KeyboardView { * KeyboardView. */ private boolean handleSuddenJump(MotionEvent me) { + // If device has distinct multi touch panel, there is no need to check sudden jump. + if (hasDistinctMultitouch()) + return false; final int action = me.getAction(); final int x = (int) me.getX(); final int y = (int) me.getY();