fix: fixes crashes when currentQuery is null and suicide prevention dialog is enabled
cc: @FineFindus
This commit is contained in:
parent
9836538562
commit
777891ebe9
1 changed files with 1 additions and 1 deletions
|
@ -388,7 +388,7 @@ public class SearchQueryFragment extends MastodonRecyclerFragment<SearchResultVi
|
||||||
}
|
}
|
||||||
|
|
||||||
private void wrapSuicideDialog(Runnable r){
|
private void wrapSuicideDialog(Runnable r){
|
||||||
if(!GlobalUserPreferences.showSuicideHelp){
|
if(!GlobalUserPreferences.showSuicideHelp || currentQuery==null){
|
||||||
r.run();
|
r.run();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue