Show voice key even when important notice is showing
Bug: 14822080 Change-Id: I2a55bb630cf544b6dc31a5e0e6b932c6af268c71main
parent
25ec32f635
commit
08103a0e07
|
@ -124,9 +124,9 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
|
|||
mImportantNoticeStrip.setVisibility(INVISIBLE);
|
||||
}
|
||||
|
||||
public void showImportantNoticeStrip() {
|
||||
public void showImportantNoticeStrip(final boolean enableVoiceKey) {
|
||||
mSuggestionsStrip.setVisibility(INVISIBLE);
|
||||
mVoiceKey.setVisibility(INVISIBLE);
|
||||
mVoiceKey.setVisibility(enableVoiceKey ? VISIBLE : INVISIBLE);
|
||||
mAddToDictionaryStrip.setVisibility(INVISIBLE);
|
||||
mImportantNoticeStrip.setVisibility(VISIBLE);
|
||||
}
|
||||
|
@ -274,7 +274,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
|
|||
dismissMoreSuggestionsPanel();
|
||||
}
|
||||
mLayoutHelper.layoutImportantNotice(mImportantNoticeStrip, importantNoticeTitle);
|
||||
mStripVisibilityGroup.showImportantNoticeStrip();
|
||||
mStripVisibilityGroup.showImportantNoticeStrip(isVoiceKeyEnabled());
|
||||
mImportantNoticeStrip.setOnClickListener(this);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue