fix build
This commit is contained in:
parent
54d55f5b49
commit
6b40f9c49b
2 changed files with 2 additions and 2 deletions
|
@ -265,7 +265,7 @@ public class WaypointHelper {
|
|||
boolean direction = true;
|
||||
if (loc.hasBearing()) {
|
||||
double diff = MapUtils.alignAngleDifference(ro.directionRoute(0, true) -
|
||||
loc.getBearing() / 180f * Math.PI));
|
||||
loc.getBearing() / 180f * Math.PI);
|
||||
direction = Math.abs(diff) < Math.PI /2f;
|
||||
}
|
||||
float mxspeed = ro.getMaximumSpeed(direction);
|
||||
|
|
|
@ -394,7 +394,7 @@ public class RouteInfoWidgetsFactory {
|
|||
Location loc = locationProvider.getLastKnownLocation();
|
||||
if(loc != null && loc.hasBearing()) {
|
||||
double diff = MapUtils.alignAngleDifference(ro.directionRoute(0, true) -
|
||||
loc.getBearing() / 180f * Math.PI));
|
||||
loc.getBearing() / 180f * Math.PI);
|
||||
direction = Math.abs(diff) < Math.PI / 2f;
|
||||
}
|
||||
mx = ro.getMaximumSpeed(direction);
|
||||
|
|
Loading…
Reference in a new issue