Bug 877870 - Only call filtering listener if toolbar is in editing mode (r=mfinkle)

This commit is contained in:
Lucas Rocha 2013-06-11 17:57:45 +01:00
parent 7daa548163
commit a7f834fcd8

View File

@ -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;