mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 14:15:30 +00:00
Bug 798859 - Remove isEmpty() call in AllPagesTab. r=mfinkle
This commit is contained in:
parent
f96e6290a5
commit
a24584f45d
@ -146,7 +146,7 @@ public class AllPagesTab extends AwesomeBarTab implements GeckoEventListener {
|
||||
|
||||
filterSuggestions(searchTerm);
|
||||
if (mSuggestionsOptInPrompt != null) {
|
||||
int visibility = searchTerm.isEmpty() ? View.GONE : View.VISIBLE;
|
||||
int visibility = TextUtils.isEmpty(searchTerm) ? View.GONE : View.VISIBLE;
|
||||
if (mSuggestionsOptInPrompt.getVisibility() != visibility) {
|
||||
mSuggestionsOptInPrompt.setVisibility(visibility);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user