Bug 933739 - Use given search term in handleAutocomplete, not mSearchTerm (r=bnicholson)
authorLucas Rocha <lucasr@lucasr.org>
Thu, 05 Dec 2013 23:50:13 -0500
changeset 173939 6b1d80107aad17f0bd7297b778f2454255752c94
parent 173938 83bce9e1d37fc70461f87c8e9610fdbc48aa5464
child 173940 8b409f4159a3ad207edd886e3d8c87e6c5aaae71
push id3224
push userlsblakk@mozilla.com
push dateTue, 04 Feb 2014 01:06:49 +0000
treeherdermozilla-beta@60c04d0987f1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbnicholson
bugs933739
milestone28.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 933739 - Use given search term in handleAutocomplete, not mSearchTerm (r=bnicholson)
mobile/android/base/home/BrowserSearch.java
--- a/mobile/android/base/home/BrowserSearch.java
+++ b/mobile/android/base/home/BrowserSearch.java
@@ -322,17 +322,17 @@ public class BrowserSearch extends HomeF
     @Override
     protected void load() {
         SearchLoader.init(getLoaderManager(), LOADER_ID_SEARCH, mCursorLoaderCallbacks, mSearchTerm);
     }
 
     private void handleAutocomplete(String searchTerm, Cursor c) {
         if (c == null ||
             mAutocompleteHandler == null ||
-            TextUtils.isEmpty(mSearchTerm)) {
+            TextUtils.isEmpty(searchTerm)) {
             return;
         }
 
         // Avoid searching the path if we don't have to. Currently just
         // decided by whether there is a '/' character in the string.
         final boolean searchPath = searchTerm.indexOf('/') > 0;
         final String autocompletion = findAutocompletion(searchTerm, c, searchPath);