aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-02-12 16:52:44 +0900
committerJean Chalard <jchalard@google.com>2014-02-12 17:30:04 +0900
commit8adedbf47c7ac150d4ac7e6cdbee3ece38f346e7 (patch)
tree29ab0d1170949941020ba55ce13477e7556770b5 /java/src/com/android/inputmethod/latin/LatinIME.java
parent351c8e6185a3b301a7469358cc1df5d075fc1b01 (diff)
downloadlatinime-8adedbf47c7ac150d4ac7e6cdbee3ece38f346e7.tar.gz
latinime-8adedbf47c7ac150d4ac7e6cdbee3ece38f346e7.tar.xz
latinime-8adedbf47c7ac150d4ac7e6cdbee3ece38f346e7.zip
Show the suggestion strip for the important notice
Bug: 10587358 Change-Id: Ia060a9ca9dfc2e7fe0750536a9fea3b9cc5900c4
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 845bafe17..30bb505cb 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1320,6 +1320,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
return false;
if (mSuggestionStripView.isShowingAddToDictionaryHint())
return true;
+ if (ImportantNoticeUtils.hasNewImportantNoticeAndNotInSetupWizard(this))
+ return true;
if (null == currentSettings)
return false;
if (!currentSettings.isSuggestionStripVisible())
@@ -1352,7 +1354,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
if (mSuggestionStripView != null) {
final boolean showSuggestions;
if (SuggestedWords.EMPTY == suggestedWords
- || suggestedWords.mIsPunctuationSuggestions) {
+ || suggestedWords.mIsPunctuationSuggestions
+ || !mSettings.getCurrent().isSuggestionsRequested()) {
showSuggestions = !mSuggestionStripView.maybeShowImportantNoticeTitle();
} else {
showSuggestions = true;