Fix QuickSearchDialogFragment crash

This commit is contained in:
Alexey Kulish 2017-05-30 12:01:44 +03:00
parent 44a5213912
commit a791aef638

View file

@ -769,7 +769,10 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
searching = false;
hideProgressBar();
updateClearButtonVisibility(true);
getDialog().hide();
Dialog dialog = getDialog();
if (dialog != null) {
dialog.hide();
}
app.getLocationProvider().addCompassListener(app.getLocationProvider().getNavigationInfo());
}