diff options
author | 2013-01-18 12:19:59 +0900 | |
---|---|---|
committer | 2013-01-23 17:12:28 +0900 | |
commit | cc5e4a444524f73a112d7223d7940d41cf60d1f4 (patch) | |
tree | f8a034e1c1e246c14c0c633580119e687becf0bd /java/src/com/android/inputmethod/latin/SettingsValues.java | |
parent | c053293484cd872ee305703886f09c66876fbae7 (diff) | |
download | latinime-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.java | 2 |
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); |