mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 877870 - Only call filtering listener if toolbar is in editing mode (r=mfinkle)
This commit is contained in:
parent
f915ef2298
commit
eb24a36064
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user