From 48255b174736bd67480595317d87add5bc90ccdf Mon Sep 17 00:00:00 2001 From: Satoshi Kataoka Date: Tue, 29 May 2012 13:16:38 +0900 Subject: [PATCH] Fix NumberFormatException Bug: 6567496 Change-Id: Ib0d9fab8496c8c856b94cce5812a263efbcb724f --- java/src/com/android/inputmethod/latin/Utils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/src/com/android/inputmethod/latin/Utils.java b/java/src/com/android/inputmethod/latin/Utils.java index 91996674b..b3e46baf5 100644 --- a/java/src/com/android/inputmethod/latin/Utils.java +++ b/java/src/com/android/inputmethod/latin/Utils.java @@ -500,8 +500,8 @@ public class Utils { } final HashMap retval = new HashMap(); for (int i = 0; i < N / 2; ++i) { - final String localeStr = ss[i]; - final long time = Long.valueOf(ss[i + 1]); + final String localeStr = ss[i * 2]; + final long time = Long.valueOf(ss[i * 2 + 1]); retval.put(localeStr, time); } return retval;