Fix NPE
This commit is contained in:
parent
fbfa3fb704
commit
0405631a16
1 changed files with 5 additions and 1 deletions
|
@ -72,7 +72,11 @@ public class MapMarkerSelectionFragment extends BaseOsmAndDialogFragment {
|
|||
LatLon myLoc = l == null ? null : new LatLon(l.getLatitude(), l.getLongitude());
|
||||
useCenter = !mapLinked;
|
||||
loc = (useCenter ? mw : myLoc);
|
||||
heading = useCenter ? -mapRotation : head;
|
||||
if (useCenter) {
|
||||
heading = -mapRotation;
|
||||
} else {
|
||||
heading = head;
|
||||
}
|
||||
}
|
||||
}
|
||||
nightMode = !app.getSettings().isLightContent();
|
||||
|
|
Loading…
Reference in a new issue