Fix crash when switch to another app while searching
This commit is contained in:
parent
52127f9bd4
commit
af7d034592
1 changed files with 3 additions and 0 deletions
|
@ -1476,6 +1476,9 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
|
|||
app.runInUIThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if(paused) {
|
||||
return;
|
||||
}
|
||||
searching = false;
|
||||
if (resultListener == null || resultListener.searchFinished(object.requiredSearchPhrase)) {
|
||||
hideProgressBar();
|
||||
|
|
Loading…
Reference in a new issue