diff options
author | 2014-02-06 17:26:26 +0900 | |
---|---|---|
committer | 2014-02-06 17:28:08 +0900 | |
commit | df754442392401dfd8dfc6fbb5ebe33032661162 (patch) | |
tree | 5f6486ba1f58ea35e81d8e5eb86d990fac8b4f7a /java/src/com/android/inputmethod/latin/Suggest.java | |
parent | a9e1930a6a9ce2e53cf9b47e8b0033b763416183 (diff) | |
download | latinime-df754442392401dfd8dfc6fbb5ebe33032661162.tar.gz latinime-df754442392401dfd8dfc6fbb5ebe33032661162.tar.xz latinime-df754442392401dfd8dfc6fbb5ebe33032661162.zip |
Move INCLUDE_RAW_SUGGESTIONS flag to ProductionFlag
This change must be checked in together with Iac93eb79fc.
Bug: 12913520
Bug: 12179576
Change-Id: Ic9a40fb0529202893be8ccb6f5abfbbe6d78508c
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Suggest.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Suggest.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index 0e16fc19a..5e74d75b0 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -20,6 +20,7 @@ import android.text.TextUtils; import com.android.inputmethod.keyboard.ProximityInfo; import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; +import com.android.inputmethod.latin.define.ProductionFlag; import com.android.inputmethod.latin.utils.AutoCorrectionUtils; import com.android.inputmethod.latin.utils.BoundedTreeSet; import com.android.inputmethod.latin.utils.CollectionUtils; @@ -51,8 +52,6 @@ public final class Suggest { private static final int SUPPRESS_SUGGEST_THRESHOLD = -2000000000; private static final boolean DBG = LatinImeLogger.sDBG; - private static final boolean INCLUDE_RAW_SUGGESTIONS = false; - public final DictionaryFacilitatorForSuggest mDictionaryFacilitator; private float mAutoCorrectionThreshold; @@ -126,7 +125,7 @@ public final class Suggest { wordComposerForLookup = wordComposer; } final ArrayList<SuggestedWordInfo> rawSuggestions; - if (INCLUDE_RAW_SUGGESTIONS) { + if (ProductionFlag.INCLUDE_RAW_SUGGESTIONS) { rawSuggestions = CollectionUtils.newArrayList(); } else { rawSuggestions = null; @@ -243,7 +242,7 @@ public final class Suggest { final BoundedTreeSet suggestionsSet = new BoundedTreeSet(sSuggestedWordInfoComparator, SuggestedWords.MAX_SUGGESTIONS); final ArrayList<SuggestedWordInfo> rawSuggestions; - if (INCLUDE_RAW_SUGGESTIONS) { + if (ProductionFlag.INCLUDE_RAW_SUGGESTIONS) { rawSuggestions = CollectionUtils.newArrayList(); } else { rawSuggestions = null; |