aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2010-09-22 21:57:28 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-22 21:57:28 -0700
commit1241be7e8498b8cca348d74363ece68b3ade730c (patch)
treef269aa49d73312f2467ba01d9e9b2e10921437c8 /java
parent84af4309f8a2d030bfd042d8363669cc477c676f (diff)
parenta96d8a11e84ef9219eb40a815e82ad8a3d852ca5 (diff)
downloadlatinime-1241be7e8498b8cca348d74363ece68b3ade730c.tar.gz
latinime-1241be7e8498b8cca348d74363ece68b3ade730c.tar.xz
latinime-1241be7e8498b8cca348d74363ece68b3ade730c.zip
am a96d8a11: Use SystemClock.uptimeMillis() for event time
Merge commit 'a96d8a11e84ef9219eb40a815e82ad8a3d852ca5' into gingerbread-plus-aosp * commit 'a96d8a11e84ef9219eb40a815e82ad8a3d852ca5': Use SystemClock.uptimeMillis() for event time
Diffstat (limited to 'java')
-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);