Bug 1210534 - Search suggestions are not refreshed after single character entered into search field. r=mcomella, a=ritu
authorSergej Kravcenko <sergej@codewaves.com>
Wed, 21 Oct 2015 19:50:15 +0300
changeset 305397 75355c970c73ca28ba2684b368e8356d6530cb27
parent 305396 5004918869f15a1bb4e67a59e63d5a680ce958bd
child 305398 09ed4ec6ff76e86ca845cae1e0b36677bee3828c
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcomella, ritu
bugs1210534
milestone44.0a2
Bug 1210534 - Search suggestions are not refreshed after single character entered into search field. r=mcomella, a=ritu
mobile/android/base/home/BrowserSearch.java
--- a/mobile/android/base/home/BrowserSearch.java
+++ b/mobile/android/base/home/BrowserSearch.java
@@ -810,17 +810,17 @@ public class BrowserSearch extends HomeF
             return;
         }
 
         final boolean isNewFilter = !TextUtils.equals(mSearchTerm, searchTerm);
 
         mSearchTerm = searchTerm;
         mAutocompleteHandler = handler;
 
-        if (isVisible()) {
+        if (mAdapter != null) {
             if (isNewFilter) {
                 // The adapter depends on the search term to determine its number
                 // of items. Make it we notify the view about it.
                 mAdapter.notifyDataSetChanged();
 
                 // Restart loaders with the new search term
                 restartSearchLoader();
                 filterSuggestions();