Skip to content

Commit

Permalink
Fix bad interactions when hint is visible
Browse files Browse the repository at this point in the history
  • Loading branch information
mgod committed Mar 9, 2016
1 parent 1ff0912 commit 1bfe171
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,11 @@ protected void performFiltering(@NonNull CharSequence text, int start, int end,
}
Filter filter = getFilter();
if (filter != null) {
filter.filter(text.subSequence(start, end), this);
if (hintVisible) {
filter.filter("");
} else {
filter.filter(text.subSequence(start, end), this);
}
}
}

Expand Down Expand Up @@ -447,7 +451,7 @@ public void invalidate() {

@Override
public boolean enoughToFilter() {
if (tokenizer == null) {
if (tokenizer == null || hintVisible) {
return false;
}

Expand Down

0 comments on commit 1bfe171

Please sign in to comment.