From b121538e0c68e0cefded2075ff3b7fb0750e2b44 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Mon, 13 May 2013 20:04:59 +0900 Subject: [PATCH] Tune maximum keypress duration to 100 milliseconds Bug: 8556975 Change-Id: If7839c5764f7a269243a9570c0b7782b6f7ee73b --- java/res/values/config.xml | 2 +- .../com/android/inputmethod/latin/SeekBarDialogPreference.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java/res/values/config.xml b/java/res/values/config.xml index 742860bf2..d3a21f2aa 100644 --- a/java/res/values/config.xml +++ b/java/res/values/config.xml @@ -31,7 +31,7 @@ true false true - 250 + 100 100 300 100 diff --git a/java/src/com/android/inputmethod/latin/SeekBarDialogPreference.java b/java/src/com/android/inputmethod/latin/SeekBarDialogPreference.java index 9819a02ef..7c4156c48 100644 --- a/java/src/com/android/inputmethod/latin/SeekBarDialogPreference.java +++ b/java/src/com/android/inputmethod/latin/SeekBarDialogPreference.java @@ -59,7 +59,7 @@ public final class SeekBarDialogPreference extends DialogPreference public void setInterface(final ValueProxy proxy) { mValueProxy = proxy; - setSummary(getValueText(proxy.readValue(getKey()))); + setSummary(getValueText(clipValue(proxy.readValue(getKey())))); } private String getValueText(final int value) {