From eb24a36064fbef52f82f4d5c53d642c08761cf4c Mon Sep 17 00:00:00 2001 From: Lucas Rocha Date: Tue, 11 Jun 2013 17:57:45 +0100 Subject: [PATCH] Bug 877870 - Only call filtering listener if toolbar is in editing mode (r=mfinkle) --- mobile/android/base/BrowserToolbar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/android/base/BrowserToolbar.java b/mobile/android/base/BrowserToolbar.java index c00255bf65e..97cf3eb686a 100644 --- a/mobile/android/base/BrowserToolbar.java +++ b/mobile/android/base/BrowserToolbar.java @@ -757,7 +757,7 @@ public class BrowserToolbar implements TextWatcher, // If this is the autocomplete text being set, don't run the filter. if (TextUtils.isEmpty(mAutoCompleteResult) || !mAutoCompleteResult.equals(text)) { - if (mFilterListener != null) { + if (isEditing() && mFilterListener != null) { mFilterListener.onFilter(text, useHandler ? this : null); } mAutoCompletePrefix = text;