Merge m-c to m-i harder
authorPhil Ringnalda <philringnalda@gmail.com>
Sun, 07 Oct 2012 22:24:12 -0700
changeset 109617 bcb1272c7b94c70e31333ee2053ec10f9c1c28d6
parent 109616 e600be5c53e820e1a059edb277029aa5a10d4081 (current diff)
parent 109615 117da9598f32937ece4d99f553959be0da01cff4 (diff)
child 109618 ddcda23710f428704d5e455abe86947154458829
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)
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
Merge m-c to m-i harder
--- 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.