aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorSatoshi Kataoka <satok@google.com>2013-05-15 12:47:08 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-05-15 12:47:08 -0700
commit32866cebf147727e88d4dd29e8099ce21461e4ca (patch)
treeed1d884e41e7402893a95cd9134c2e1df3029a07 /java/src
parent41b21c470fd44c0d70638d9f802ca0e9b917ad53 (diff)
parent2a383bfebd16c82473ddf1c5203e5bc2d68282d5 (diff)
downloadlatinime-32866cebf147727e88d4dd29e8099ce21461e4ca.tar.gz
latinime-32866cebf147727e88d4dd29e8099ce21461e4ca.tar.xz
latinime-32866cebf147727e88d4dd29e8099ce21461e4ca.zip
am 2a383bfe: am 341f1b23: Tweak gesture debug
* commit '2a383bfebd16c82473ddf1c5203e5bc2d68282d5': Tweak gesture debug
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/keyboard/internal/GesturePreviewTrail.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/internal/GesturePreviewTrail.java b/java/src/com/android/inputmethod/keyboard/internal/GesturePreviewTrail.java
index 7fbc05434..761d9dcd6 100644
--- a/java/src/com/android/inputmethod/keyboard/internal/GesturePreviewTrail.java
+++ b/java/src/com/android/inputmethod/keyboard/internal/GesturePreviewTrail.java
@@ -83,9 +83,9 @@ final class GesturePreviewTrail {
R.styleable.MainKeyboardView_gesturePreviewTrailShadowRatio, 0);
mTrailShadowEnabled = (trailShadowRatioInt > 0);
mTrailShadowRatio = (float)trailShadowRatioInt / (float)PERCENTAGE_INT;
- mFadeoutStartDelay = mainKeyboardViewAttr.getInt(
+ mFadeoutStartDelay = DBG_SHOW_POINTS ? 2000 : mainKeyboardViewAttr.getInt(
R.styleable.MainKeyboardView_gesturePreviewTrailFadeoutStartDelay, 0);
- mFadeoutDuration = mainKeyboardViewAttr.getInt(
+ mFadeoutDuration = DBG_SHOW_POINTS ? 200 : mainKeyboardViewAttr.getInt(
R.styleable.MainKeyboardView_gesturePreviewTrailFadeoutDuration, 0);
mTrailLingerDuration = mFadeoutStartDelay + mFadeoutDuration;
mUpdateInterval = mainKeyboardViewAttr.getInt(
@@ -259,7 +259,7 @@ final class GesturePreviewTrail {
if (pointTypes[i] == POINT_TYPE_INTERPOLATED) {
paint.setColor(Color.RED);
} else if (pointTypes[i] == POINT_TYPE_SAMPLED) {
- paint.setColor(Color.BLUE);
+ paint.setColor(0xFFA000FF);
} else {
paint.setColor(Color.GREEN);
}