Dismiss more suggestions before showing important notice

Bug: 14078601
Change-Id: I029cadd8f2f170b5a3e70df170e306c9be109a70
main
Tadashi G. Takaoka 2014-04-16 15:40:05 +09:00
parent 1ee443d848
commit c8abd13c77
1 changed files with 3 additions and 0 deletions

View File

@ -240,6 +240,9 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
if (TextUtils.isEmpty(importantNoticeTitle)) { if (TextUtils.isEmpty(importantNoticeTitle)) {
return false; return false;
} }
if (isShowingMoreSuggestionPanel()) {
dismissMoreSuggestionsPanel();
}
mLayoutHelper.layoutImportantNotice(mImportantNoticeStrip, importantNoticeTitle); mLayoutHelper.layoutImportantNotice(mImportantNoticeStrip, importantNoticeTitle);
mStripVisibilityGroup.showImportantNoticeStrip(); mStripVisibilityGroup.showImportantNoticeStrip();
mImportantNoticeStrip.setOnClickListener(this); mImportantNoticeStrip.setOnClickListener(this);