fix(search): check for empty queries
Fixes an error message, which would appear, if the search query was blank.
This commit is contained in:
parent
d6bcc9c156
commit
82fac1d4e7
|
@ -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