Bug 798859 - Remove isEmpty() call in AllPagesTab. r=mfinkle

This commit is contained in:
Brian Nicholson 2012-10-07 22:22:02 -07:00
parent f96e6290a5
commit a24584f45d

View File

@ -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);
}