Merge pull request #545 from FineFindus/fix/empty-search-query
fix(search): check for empty queries
This commit is contained in:
commit
5e4e56bd2c
|
@ -236,7 +236,7 @@ public class SearchFragment extends BaseStatusListFragment<SearchResult>{
|
|||
}
|
||||
|
||||
public void setQuery(String q){
|
||||
if(Objects.equals(q, currentQuery))
|
||||
if(Objects.equals(q, currentQuery) || q.isBlank())
|
||||
return;
|
||||
if(currentRequest!=null){
|
||||
currentRequest.cancel();
|
||||
|
|
Loading…
Reference in New Issue