fix(search): check for empty queries

Fixes an error message, which would appear, if the search query was blank.
This commit is contained in:
FineFindus 2023-03-17 16:19:38 +01:00
parent d6bcc9c156
commit 82fac1d4e7
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B
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();