From af69a14c9684ef6f7a14e60cb635f96db530f6e7 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Tue, 18 Jun 2013 15:54:37 +0900 Subject: [PATCH] Use system default vibration pattern Bug: 9468462 Change-Id: Ifa46a56873c10888da8eaa2782fe07ef138a141b --- java/res/values/keypress-vibration-durations.xml | 4 ++-- java/res/values/strings.xml | 2 ++ java/src/com/android/inputmethod/latin/SettingsFragment.java | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/java/res/values/keypress-vibration-durations.xml b/java/res/values/keypress-vibration-durations.xml index e8d92256b..e2f2b56e5 100644 --- a/java/res/values/keypress-vibration-durations.xml +++ b/java/res/values/keypress-vibration-durations.xml @@ -56,7 +56,7 @@ MODEL=XT907:MANUFACTURER=motorola,30 MODEL=C6603:MANUFACTURER=Sony,35 - - ,20 + + ,-1 diff --git a/java/res/values/strings.xml b/java/res/values/strings.xml index 85abb08fe..cdc2c3a09 100644 --- a/java/res/values/strings.xml +++ b/java/res/values/strings.xml @@ -79,6 +79,8 @@ %sms + + System default Suggest Contact names diff --git a/java/src/com/android/inputmethod/latin/SettingsFragment.java b/java/src/com/android/inputmethod/latin/SettingsFragment.java index 9cc178598..6587b40ab 100644 --- a/java/src/com/android/inputmethod/latin/SettingsFragment.java +++ b/java/src/com/android/inputmethod/latin/SettingsFragment.java @@ -367,6 +367,9 @@ public final class SettingsFragment extends InputMethodSettingsFragment @Override public String getValueText(final int value) { + if (value < 0) { + return res.getString(R.string.settings_system_default); + } return res.getString(R.string.abbreviation_unit_milliseconds, value); } });