aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2010-09-22 22:07:58 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-22 22:07:58 -0700
commit437cabe0df4c031037afaff62cfeb2d24b250012 (patch)
tree5202cec6c0fbbfe5c0b7e992d41bf38b9963fb83 /java/src
parent36f64d2bba87ce098513c07814c86b40e5a978bd (diff)
parent1241be7e8498b8cca348d74363ece68b3ade730c (diff)
downloadlatinime-437cabe0df4c031037afaff62cfeb2d24b250012.tar.gz
latinime-437cabe0df4c031037afaff62cfeb2d24b250012.tar.xz
latinime-437cabe0df4c031037afaff62cfeb2d24b250012.zip
am 1241be7e: am a96d8a11: Use SystemClock.uptimeMillis() for event time
Merge commit '1241be7e8498b8cca348d74363ece68b3ade730c' * commit '1241be7e8498b8cca348d74363ece68b3ade730c': Use SystemClock.uptimeMillis() for event time
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java
index dafbb669e..eeccb965c 100644
--- a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java
+++ b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java
@@ -33,6 +33,7 @@ import android.inputmethodservice.Keyboard;
import android.inputmethodservice.Keyboard.Key;
import android.os.Handler;
import android.os.Message;
+import android.os.SystemClock;
import android.util.AttributeSet;
import android.util.Log;
import android.util.TypedValue;
@@ -1157,7 +1158,7 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx
mMiniKeyboardPopup.showAtLocation(this, Gravity.NO_GRAVITY, x, y);
// Inject down event on the key to mini keyboard.
- long eventTime = System.currentTimeMillis();
+ long eventTime = SystemClock.uptimeMillis();
mMiniKeyboardPopupTime = eventTime;
MotionEvent downEvent = generateMiniKeyboardMotionEvent(MotionEvent.ACTION_DOWN, popupKey.x
+ popupKey.width / 2, popupKey.y + popupKey.height / 2, eventTime);