From dba77186f78a9c8b449cc0def5153586ef3f81f9 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Mon, 6 Aug 2012 17:08:38 +0900 Subject: [PATCH] Fix duplicate getSuggestions() call for main dictionary Change-Id: I092480063452505cdf03dbd83b9c64e535822931 --- .../src/com/android/inputmethod/latin/DictionaryCollection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/DictionaryCollection.java b/java/src/com/android/inputmethod/latin/DictionaryCollection.java index 88ac07d7a..ee80f2532 100644 --- a/java/src/com/android/inputmethod/latin/DictionaryCollection.java +++ b/java/src/com/android/inputmethod/latin/DictionaryCollection.java @@ -65,7 +65,7 @@ public class DictionaryCollection extends Dictionary { prevWord, proximityInfo); if (null == suggestions) suggestions = new ArrayList(); final int length = dictionaries.size(); - for (int i = 0; i < length; ++ i) { + for (int i = 1; i < length; ++ i) { final ArrayList sugg = dictionaries.get(i).getSuggestions(composer, prevWord, proximityInfo); if (null != sugg) suggestions.addAll(sugg);