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() {
|
app.runInUIThread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if(paused) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
searching = false;
|
searching = false;
|
||||||
if (resultListener == null || resultListener.searchFinished(object.requiredSearchPhrase)) {
|
if (resultListener == null || resultListener.searchFinished(object.requiredSearchPhrase)) {
|
||||||
hideProgressBar();
|
hideProgressBar();
|
||||||
|
|
Loading…
Reference in a new issue