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 159130 8f90c80597331603929133d6d0f43fa306226fd6
parent 159129 f118b840cabe5a9bd752ea45081006358674566a
child 159131 d440fa8a15682fb3652528260311e36ab1080181
push id25772
push usercbook@mozilla.com
push dateFri, 06 Dec 2013 12:31:37 +0000
treeherdermozilla-central@538e52a54db9 [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);