refactored some code
This commit is contained in:
parent
bce81ab430
commit
c2138e49b7
1 changed files with 2 additions and 4 deletions
|
@ -215,10 +215,8 @@ public class MapMarkersWidgetsFactory {
|
|||
return;
|
||||
}
|
||||
|
||||
Float heading = map.getMapViewTrackingUtilities().getHeading();
|
||||
if(!map.getMapViewTrackingUtilities().isMapLinkedToLocation()){
|
||||
heading=0f;
|
||||
}
|
||||
boolean mapLinkedToLoc = map.getMapViewTrackingUtilities().isMapLinkedToLocation();
|
||||
Float heading = !mapLinkedToLoc ? 0f : map.getMapViewTrackingUtilities().getHeading();
|
||||
MapMarker marker = markers.get(0);
|
||||
updateUI(loc, heading, marker, arrowImg, distText, okButton, addressText, true, customLocation != null);
|
||||
|
||||
|
|
Loading…
Reference in a new issue