Fix QuickSearchDialogFragment crash
This commit is contained in:
parent
6f491e030c
commit
e335f09c29
1 changed files with 4 additions and 1 deletions
|
@ -769,7 +769,10 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
|
||||||
searching = false;
|
searching = false;
|
||||||
hideProgressBar();
|
hideProgressBar();
|
||||||
updateClearButtonVisibility(true);
|
updateClearButtonVisibility(true);
|
||||||
getDialog().hide();
|
Dialog dialog = getDialog();
|
||||||
|
if (dialog != null) {
|
||||||
|
dialog.hide();
|
||||||
|
}
|
||||||
app.getLocationProvider().addCompassListener(app.getLocationProvider().getNavigationInfo());
|
app.getLocationProvider().addCompassListener(app.getLocationProvider().getNavigationInfo());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue