diff options
author | 2010-10-12 20:24:53 +0900 | |
---|---|---|
committer | 2010-10-13 00:00:59 +0900 | |
commit | adf24e2eb49acd32d2655a3964f68da1e54c05ec (patch) | |
tree | 6aa10b2a6175b604183f879602fd3323354e33d1 /java/src/com/android/inputmethod/latin/PointerTracker.java | |
parent | 50a61083d3231e2f56b640c06686381de73aedc6 (diff) | |
download | latinime-adf24e2eb49acd32d2655a3964f68da1e54c05ec.tar.gz latinime-adf24e2eb49acd32d2655a3964f68da1e54c05ec.tar.xz latinime-adf24e2eb49acd32d2655a3964f68da1e54c05ec.zip |
Follow up change of If9472a2a
This change is follow up of If9472a2acb029e56790dc4d19ab62e608c970175
Change-Id: I0a474a130f49e2acccbb5a164bdf2984a5bd9042
Diffstat (limited to 'java/src/com/android/inputmethod/latin/PointerTracker.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/PointerTracker.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/PointerTracker.java b/java/src/com/android/inputmethod/latin/PointerTracker.java index 3b886200e..d1cdbfe26 100644 --- a/java/src/com/android/inputmethod/latin/PointerTracker.java +++ b/java/src/com/android/inputmethod/latin/PointerTracker.java @@ -21,7 +21,6 @@ import com.android.inputmethod.latin.LatinKeyboardBaseView.OnKeyboardActionListe import com.android.inputmethod.latin.LatinKeyboardBaseView.UIHandler; import android.content.res.Resources; -import android.inputmethodservice.Keyboard; import android.util.Log; import android.view.MotionEvent; @@ -286,7 +285,7 @@ public class PointerTracker { mHandler.startKeyRepeatTimer(mDelayBeforeKeyRepeatStart, keyIndex, this); mIsRepeatableKey = true; } - mHandler.startLongPressTimer(mLongPressKeyTimeout, keyIndex, this); + startLongPressTimer(keyIndex); } showKeyPreviewAndUpdateKey(keyIndex); } @@ -302,11 +301,11 @@ public class PointerTracker { if (key != null) { if (keyState.getKeyIndex() == NOT_A_KEY) { keyState.onMoveToNewKey(keyIndex, x, y); - mHandler.startLongPressTimer(mLongPressKeyTimeout, keyIndex, this); + startLongPressTimer(keyIndex); } else if (!isMinorMoveBounce(x, y, keyIndex)) { resetMultiTap(); keyState.onMoveToNewKey(keyIndex, x, y); - mHandler.startLongPressTimer(mLongPressKeyTimeout, keyIndex, this); + startLongPressTimer(keyIndex); } } else { if (keyState.getKeyIndex() != NOT_A_KEY) { |