aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-04-12 19:46:02 +0900
committersatok <satok@google.com>2012-04-12 19:46:02 +0900
commitcf6b2099be5deda896ba129a835a06867be2293f (patch)
treedaac59f63ec3a8c85e8c6d7d0b5a88224d531cb3 /java/src/com/android/inputmethod/latin/LatinIME.java
parent4c9b2504e2ce7204fc5a9a5f89f5016c320f3713 (diff)
downloadlatinime-cf6b2099be5deda896ba129a835a06867be2293f.tar.gz
latinime-cf6b2099be5deda896ba129a835a06867be2293f.tar.xz
latinime-cf6b2099be5deda896ba129a835a06867be2293f.zip
Add isDictionaryAvailable to SubtypeSwitcher
Change-Id: I534878d330b57bbfaa8b7711082456969771f4dc
Diffstat (limited to '')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 7cdeef897..187252a31 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1895,7 +1895,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
if (mSettingsValues.mEnableSuggestionSpanInsertion) {
final SuggestedWords suggestedWords = mSuggestionsView.getSuggestions();
ic.commitText(SuggestionSpanUtils.getTextWithSuggestionSpan(
- this, bestWord, suggestedWords), 1);
+ this, bestWord, suggestedWords, mSubtypeSwitcher.isDictionaryAvailable()),
+ 1);
} else {
ic.commitText(bestWord, 1);
}