From bdf31fb75e521ba9d3f9a259e6928123fc546dda Mon Sep 17 00:00:00 2001 From: Keisuke Kuroyanagi Date: Fri, 25 Apr 2014 00:56:27 -0700 Subject: [PATCH] Fix: contains() is wrongly used in hasDict(). Change-Id: I4699b1b75fed9dd479f5135f0a7a2dd098e6f798 --- .../inputmethod/latin/DictionaryFacilitatorForSuggest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/DictionaryFacilitatorForSuggest.java b/java/src/com/android/inputmethod/latin/DictionaryFacilitatorForSuggest.java index 00b9f533c..6482feb67 100644 --- a/java/src/com/android/inputmethod/latin/DictionaryFacilitatorForSuggest.java +++ b/java/src/com/android/inputmethod/latin/DictionaryFacilitatorForSuggest.java @@ -122,7 +122,7 @@ public class DictionaryFacilitatorForSuggest { } public boolean hasDict(final String dictType) { - return mDictMap.contains(dictType); + return mDictMap.containsKey(dictType); } public void closeDict(final String dictType) {