aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-04-16 15:40:05 +0900
committerTadashi G. Takaoka <takaoka@google.com>2014-04-16 15:40:39 +0900
commitc8abd13c77ed90b209301ea379e1142e0d60e3f5 (patch)
treef3656494ca667859e180f7474d89be7ed0a18b1f /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
parent1ee443d848f7e8ce8b3696e4d6e4a6afa1ce2d47 (diff)
downloadlatinime-c8abd13c77ed90b209301ea379e1142e0d60e3f5.tar.gz
latinime-c8abd13c77ed90b209301ea379e1142e0d60e3f5.tar.xz
latinime-c8abd13c77ed90b209301ea379e1142e0d60e3f5.zip
Dismiss more suggestions before showing important notice
Bug: 14078601 Change-Id: I029cadd8f2f170b5a3e70df170e306c9be109a70
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
index 3cdd07361..a0793b133 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
@@ -240,6 +240,9 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
if (TextUtils.isEmpty(importantNoticeTitle)) {
return false;
}
+ if (isShowingMoreSuggestionPanel()) {
+ dismissMoreSuggestionsPanel();
+ }
mLayoutHelper.layoutImportantNotice(mImportantNoticeStrip, importantNoticeTitle);
mStripVisibilityGroup.showImportantNoticeStrip();
mImportantNoticeStrip.setOnClickListener(this);