From 77e95e60bbfacb08d2298813af36d281a96661a6 Mon Sep 17 00:00:00 2001
From: Jean Chalard <jchalard@google.com>
Date: Tue, 26 Jun 2012 16:59:09 +0900
Subject: [PATCH] Preparation for a simplification (A19)

Change-Id: I4605a571faf5fbc68b18ce525d6019600bfa8cf7
---
 java/src/com/android/inputmethod/latin/Suggest.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java
index 4e8bf19738..70180603b9 100644
--- a/java/src/com/android/inputmethod/latin/Suggest.java
+++ b/java/src/com/android/inputmethod/latin/Suggest.java
@@ -115,6 +115,8 @@ public class Suggest {
     private void initWhitelistAndAutocorrectAndPool(final Context context, final Locale locale) {
         mWhiteListDictionary = new WhitelistDictionary(context, locale);
         addOrReplaceDictionary(mUnigramDictionaries, DICT_KEY_WHITELIST, mWhiteListDictionary);
+        // The whitelist dictionary never returns any bigrams, so it's safe to add it here
+        addOrReplaceDictionary(mBigramDictionaries, DICT_KEY_WHITELIST, mWhiteListDictionary);
     }
 
     private void initAsynchronously(final Context context, final Locale locale) {
@@ -178,6 +180,8 @@ public class Suggest {
      */
     public void setUserDictionary(UserBinaryDictionary userDictionary) {
         addOrReplaceDictionary(mUnigramDictionaries, DICT_KEY_USER, userDictionary);
+        // The user dictionary never returns any bigrams, so it's safe to add it
+        addOrReplaceDictionary(mBigramDictionaries, DICT_KEY_USER, userDictionary);
     }
 
     /**
-- 
GitLab