From 6b40f9c49b278a3ed4c06431e7343678d52bccd7 Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 3 Aug 2016 01:40:53 +0200 Subject: [PATCH] fix build --- OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java | 2 +- .../osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java b/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java index 8d4fc5ddd3..b010925978 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java @@ -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); diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java index a8e860d5ab..6a02cb79be 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java @@ -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);