diff --git a/mobile/android/base/awesomebar/AllPagesTab.java b/mobile/android/base/awesomebar/AllPagesTab.java index 9a9c2e6295a..b948bcbb4dd 100644 --- a/mobile/android/base/awesomebar/AllPagesTab.java +++ b/mobile/android/base/awesomebar/AllPagesTab.java @@ -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); }