Merge pull request #545 from FineFindus/fix/empty-search-query

fix(search): check for empty queries
This commit is contained in:
Gregory K 2023-03-17 20:10:02 +03:00 committed by GitHub
commit 5e4e56bd2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ public class SearchFragment extends BaseStatusListFragment<SearchResult>{
} }
public void setQuery(String q){ public void setQuery(String q){
if(Objects.equals(q, currentQuery)) if(Objects.equals(q, currentQuery) || q.isBlank())
return; return;
if(currentRequest!=null){ if(currentRequest!=null){
currentRequest.cancel(); currentRequest.cancel();