aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/SettingsValues.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2013-01-18 12:19:59 +0900
committerTadashi G. Takaoka <takaoka@google.com>2013-01-23 17:12:28 +0900
commitcc5e4a444524f73a112d7223d7940d41cf60d1f4 (patch)
treef8a034e1c1e246c14c0c633580119e687becf0bd /java/src/com/android/inputmethod/latin/SettingsValues.java
parentc053293484cd872ee305703886f09c66876fbae7 (diff)
downloadlatinime-cc5e4a444524f73a112d7223d7940d41cf60d1f4.tar.gz
latinime-cc5e4a444524f73a112d7223d7940d41cf60d1f4.tar.xz
latinime-cc5e4a444524f73a112d7223d7940d41cf60d1f4.zip
Configurable key long press timeout
The default long presss timeout is 300msec (previous timeout was 400ms). Bug: 7600340 Change-Id: Ia8b64784ac03588631cfcbad30e021d74f3fd0d8
Diffstat (limited to 'java/src/com/android/inputmethod/latin/SettingsValues.java')
-rw-r--r--java/src/com/android/inputmethod/latin/SettingsValues.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/SettingsValues.java b/java/src/com/android/inputmethod/latin/SettingsValues.java
index d6556d617..29e79e4cc 100644
--- a/java/src/com/android/inputmethod/latin/SettingsValues.java
+++ b/java/src/com/android/inputmethod/latin/SettingsValues.java
@@ -59,6 +59,7 @@ public final class SettingsValues {
public final boolean mGestureInputEnabled;
public final boolean mGesturePreviewTrailEnabled;
public final boolean mGestureFloatingPreviewTextEnabled;
+ public final int mKeyLongpressTimeout;
// From the input box
public final InputAttributes mInputAttributes;
@@ -121,6 +122,7 @@ public final class SettingsValues {
mBigramPredictionEnabled = readBigramPredictionEnabled(prefs, res);
// Compute other readable settings
+ mKeyLongpressTimeout = Settings.readKeyLongpressTimeout(prefs, res);
mKeypressVibrationDuration = Settings.readKeypressVibrationDuration(prefs, res);
mKeypressSoundVolume = Settings.readKeypressSoundVolume(prefs, res);
mKeyPreviewPopupDismissDelay = Settings.readKeyPreviewPopupDismissDelay(prefs, res);