mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 912524: Do not reinflate SuggestionOptIn ViewStub. r=bnicholson
This commit is contained in:
parent
b242283bdf
commit
19483e1fb9
@ -457,6 +457,12 @@ public class BrowserSearch extends HomeFragment
|
||||
}
|
||||
|
||||
private void showSuggestionsOptIn() {
|
||||
// Return if the ViewStub was already inflated - an inflated ViewStub is removed from the
|
||||
// View hierarchy so a second call to findViewById will return null.
|
||||
if (mSuggestionsOptInPrompt != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
mSuggestionsOptInPrompt = ((ViewStub) mView.findViewById(R.id.suggestions_opt_in_prompt)).inflate();
|
||||
|
||||
TextView promptText = (TextView) mSuggestionsOptInPrompt.findViewById(R.id.suggestions_prompt_title);
|
||||
|
Loading…
Reference in New Issue
Block a user