am 08103a0e: Show voice key even when important notice is showing
* commit '08103a0e0784ef0396fd17cbd955309270f8d3a9': Show voice key even when important notice is showingmain
commit
b809ae1d40
|
@ -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