Bug 798859 - Remove isEmpty() call in AllPagesTab. r=mfinkle
authorBrian Nicholson <bnicholson@mozilla.com>
Sun, 07 Oct 2012 22:22:02 -0700
changeset 109615 117da9598f32937ece4d99f553959be0da01cff4
parent 109614 d157276ffe2d2d619c3b519a317c872df5faa85a
child 109617 bcb1272c7b94c70e31333ee2053ec10f9c1c28d6
push id23636
push usergsharp@mozilla.com
push dateMon, 08 Oct 2012 08:08:19 +0000
treeherdermozilla-central@24cf40690042 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs798859
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 798859 - Remove isEmpty() call in AllPagesTab. r=mfinkle
mobile/android/base/awesomebar/AllPagesTab.java
--- a/mobile/android/base/awesomebar/AllPagesTab.java
+++ b/mobile/android/base/awesomebar/AllPagesTab.java
@@ -141,17 +141,17 @@ public class AllPagesTab extends Awesome
     }
 
     public void filter(String searchTerm) {
         AwesomeBarCursorAdapter adapter = getCursorAdapter();
         adapter.filter(searchTerm);
 
         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);
             }
         }
     }
 
     /**
      * Query for suggestions, but don't show them yet.