fix build

This commit is contained in:
sonora 2016-08-03 01:40:53 +02:00
parent 54d55f5b49
commit 6b40f9c49b
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);