Fix QuickSearchDialogFragment crash

This commit is contained in:
Alexey Kulish 2017-05-30 12:01:44 +03:00
parent 6f491e030c
commit e335f09c29

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