зеркало из https://github.com/mozilla/gecko-dev.git
Bug 798859 - Remove isEmpty() call in AllPagesTab. r=mfinkle
This commit is contained in:
Родитель
f96e6290a5
Коммит
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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче