Fix turn lanes highlight
This commit is contained in:
parent
a0d9f5feba
commit
ff5baebcd3
1 changed files with 2 additions and 2 deletions
|
@ -407,7 +407,7 @@ public class RouteInfoWidgetsFactory {
|
||||||
@Override
|
@Override
|
||||||
public boolean updateInfo(DrawSettings drawSettings) {
|
public boolean updateInfo(DrawSettings drawSettings) {
|
||||||
float mx = 0;
|
float mx = 0;
|
||||||
if ((rh == null || !rh.isFollowingMode() || rh.isDeviatedFromRoute() || !rh.isCurrentGPXRouteV2())
|
if ((rh == null || !rh.isFollowingMode() || rh.isDeviatedFromRoute() || (rh.getCurrentGPXRoute() != null && !rh.isCurrentGPXRouteV2()))
|
||||||
&& trackingUtilities.isMapLinkedToLocation()) {
|
&& trackingUtilities.isMapLinkedToLocation()) {
|
||||||
RouteDataObject ro = locationProvider.getLastKnownRouteSegment();
|
RouteDataObject ro = locationProvider.getLastKnownRouteSegment();
|
||||||
if(ro != null) {
|
if(ro != null) {
|
||||||
|
@ -811,7 +811,7 @@ public class RouteInfoWidgetsFactory {
|
||||||
int[] loclanes = null;
|
int[] loclanes = null;
|
||||||
int dist = 0;
|
int dist = 0;
|
||||||
// TurnType primary = null;
|
// TurnType primary = null;
|
||||||
if ((rh == null || !rh.isFollowingMode() || rh.isDeviatedFromRoute() || !rh.isCurrentGPXRouteV2())
|
if ((rh == null || !rh.isFollowingMode() || rh.isDeviatedFromRoute() || (rh.getCurrentGPXRoute() != null && !rh.isCurrentGPXRouteV2()))
|
||||||
&& trackingUtilities.isMapLinkedToLocation() && settings.SHOW_LANES.get()) {
|
&& trackingUtilities.isMapLinkedToLocation() && settings.SHOW_LANES.get()) {
|
||||||
RouteDataObject ro = locationProvider.getLastKnownRouteSegment();
|
RouteDataObject ro = locationProvider.getLastKnownRouteSegment();
|
||||||
Location lp = locationProvider.getLastKnownLocation();
|
Location lp = locationProvider.getLastKnownLocation();
|
||||||
|
|
Loading…
Reference in a new issue