aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-04-16 09:45:18 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-04-16 09:45:18 +0000
commit73a1841dfb869b277ac9430b2546f81a755e56fc (patch)
tree81a63ed174a30511f18cc910342d99a8bb82f90e
parente2fba0d64b4b612a73ded8534f7409082e4250e3 (diff)
parent166fd799d4c3fb9447c44ddd2fabe1a97fc6466b (diff)
downloadlatinime-73a1841dfb869b277ac9430b2546f81a755e56fc.tar.gz
latinime-73a1841dfb869b277ac9430b2546f81a755e56fc.tar.xz
latinime-73a1841dfb869b277ac9430b2546f81a755e56fc.zip
am 166fd799: Merge "Dismiss more suggestions before showing important notice"
* commit '166fd799d4c3fb9447c44ddd2fabe1a97fc6466b': Dismiss more suggestions before showing important notice
-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);