mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1230568 - Allowing showing search suggestion opt in multiple times r=mcomella
This commit is contained in:
parent
0f45909bac
commit
115048280c
@ -744,9 +744,11 @@ 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.
|
||||
// Only make the ViewStub visible again if it has already previously been shown.
|
||||
// (An inflated ViewStub is removed from the View hierarchy so a second call to findViewById will return null,
|
||||
// which also further necessitates handling this separately.)
|
||||
if (mSuggestionsOptInPrompt != null) {
|
||||
mSuggestionsOptInPrompt.setVisibility(View.VISIBLE);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user