aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/settings/SettingsValues.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-03-18 07:26:18 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-03-18 07:26:18 +0000
commit1325ddbae318d75b62f59beb09b989291838be48 (patch)
treeba57235595eef56bb8b0b2de08f786f6ee0cbd9f /java/src/com/android/inputmethod/latin/settings/SettingsValues.java
parent6bdb2e60dc33cb9ba9c4d48e6fa2fbef14c4ec90 (diff)
parentd2c6151d4d78e5e7d09080efd14e0a8f5933afb9 (diff)
downloadlatinime-1325ddbae318d75b62f59beb09b989291838be48.tar.gz
latinime-1325ddbae318d75b62f59beb09b989291838be48.tar.xz
latinime-1325ddbae318d75b62f59beb09b989291838be48.zip
Merge "Guard possible NumberFormatException"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/settings/SettingsValues.java')
-rw-r--r--java/src/com/android/inputmethod/latin/settings/SettingsValues.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/settings/SettingsValues.java b/java/src/com/android/inputmethod/latin/settings/SettingsValues.java
index 50fbbb19f..5a652a557 100644
--- a/java/src/com/android/inputmethod/latin/settings/SettingsValues.java
+++ b/java/src/com/android/inputmethod/latin/settings/SettingsValues.java
@@ -285,7 +285,7 @@ public final class SettingsValues {
// When autoCorrectionThreshold is greater than 1.0, it's like auto correction is off.
final float autoCorrectionThreshold;
try {
- final int arrayIndex = Integer.valueOf(currentAutoCorrectionSetting);
+ final int arrayIndex = Integer.parseInt(currentAutoCorrectionSetting);
if (arrayIndex >= 0 && arrayIndex < autoCorrectionThresholdValues.length) {
final String val = autoCorrectionThresholdValues[arrayIndex];
if (FLOAT_MAX_VALUE_MARKER_STRING.equals(val)) {