From d09ad2e3683a25a4fb461dfcf3e6f4d92a5822dd Mon Sep 17 00:00:00 2001 From: Satoshi Kataoka Date: Wed, 14 Aug 2013 19:36:02 +0900 Subject: [PATCH] Fix a debug functionality for the personalization prediction Bug: 9429906 Change-Id: I10d39e1f8758dcb64c9c0111d516e3abfe81b04e --- java/src/com/android/inputmethod/latin/Suggest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index c2fdcb552..55b70c6f8 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -107,7 +107,7 @@ public final class Suggest { } private void addOrReplaceDictionaryInternal(final String key, final Dictionary dict) { - if (mOnlyDictionarySetForDebug != null && mOnlyDictionarySetForDebug.contains(key)) { + if (mOnlyDictionarySetForDebug != null && !mOnlyDictionarySetForDebug.contains(key)) { Log.w(TAG, "Ignore add " + key + " dictionary for debug."); return; }