aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/compat
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-04-12 04:46:29 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-04-12 04:46:29 -0700
commit35b5a7babb2f22a67342813c122ebe39a5dc6623 (patch)
tree52857b9fa426d95c50978f0653e0bb8ea50b6854 /java/src/com/android/inputmethod/compat
parent0f87ca72f7c569f7db075701767e504c75952182 (diff)
parentcf6b2099be5deda896ba129a835a06867be2293f (diff)
downloadlatinime-35b5a7babb2f22a67342813c122ebe39a5dc6623.tar.gz
latinime-35b5a7babb2f22a67342813c122ebe39a5dc6623.tar.xz
latinime-35b5a7babb2f22a67342813c122ebe39a5dc6623.zip
Merge "Add isDictionaryAvailable to SubtypeSwitcher"
Diffstat (limited to 'java/src/com/android/inputmethod/compat')
-rw-r--r--java/src/com/android/inputmethod/compat/SuggestionSpanUtils.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/compat/SuggestionSpanUtils.java b/java/src/com/android/inputmethod/compat/SuggestionSpanUtils.java
index 43c19d7eb..d97989d9c 100644
--- a/java/src/com/android/inputmethod/compat/SuggestionSpanUtils.java
+++ b/java/src/com/android/inputmethod/compat/SuggestionSpanUtils.java
@@ -104,8 +104,9 @@ public class SuggestionSpanUtils {
}
public static CharSequence getTextWithSuggestionSpan(Context context,
- CharSequence pickedWord, SuggestedWords suggestedWords) {
- if (TextUtils.isEmpty(pickedWord) || CONSTRUCTOR_SuggestionSpan == null
+ CharSequence pickedWord, SuggestedWords suggestedWords, boolean dictionaryAvailable) {
+ if (!dictionaryAvailable || TextUtils.isEmpty(pickedWord)
+ || CONSTRUCTOR_SuggestionSpan == null
|| suggestedWords == null || suggestedWords.size() == 0
|| OBJ_SUGGESTIONS_MAX_SIZE == null) {
return pickedWord;