Fix crash when switch to another app while searching

This commit is contained in:
Victor Shcherb 2017-04-16 12:56:40 +03:00
parent 52127f9bd4
commit af7d034592

View file

@ -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();