fix npe
This commit is contained in:
parent
904dc50dcd
commit
8e9e1809ec
1 changed files with 5 additions and 1 deletions
|
@ -765,6 +765,10 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
|
|||
}
|
||||
|
||||
public void show() {
|
||||
Dialog dialog = getDialog();
|
||||
if (dialog == null) {
|
||||
return;
|
||||
}
|
||||
if (useMapCenter) {
|
||||
LatLon mapCenter = getMapActivity().getMapView().getCurrentRotatedTileBox().getCenterLatLon();
|
||||
SearchSettings ss = searchUICore.getSearchSettings().setOriginalLocation(
|
||||
|
@ -774,7 +778,7 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
|
|||
updateLocationUI(mapCenter, null);
|
||||
}
|
||||
app.getLocationProvider().removeCompassListener(app.getLocationProvider().getNavigationInfo());
|
||||
getDialog().show();
|
||||
dialog.show();
|
||||
paused = false;
|
||||
cancelPrev = false;
|
||||
hidden = false;
|
||||
|
|
Loading…
Reference in a new issue