From 4f108b05ae1323207876049397d2f22dba47d4c0 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 31 May 2015 18:54:52 +0200 Subject: [PATCH] Fix https://github.com/osmandapp/Osmand/issues/1283 --- .../plus/views/mapwidgets/NextTurnInfoWidget.java | 10 +--------- .../plus/views/mapwidgets/RouteInfoWidgetsFactory.java | 1 - 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/NextTurnInfoWidget.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/NextTurnInfoWidget.java index 3f96c4687d..a60fe55823 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/NextTurnInfoWidget.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/NextTurnInfoWidget.java @@ -64,7 +64,6 @@ public class NextTurnInfoWidget extends TextInfoWidget { public void setTurnImminent(int turnImminent, boolean deviatedFromRoute) { if(turnDrawable.turnImminent != turnImminent || turnDrawable.deviatedFromRoute != deviatedFromRoute) { turnDrawable.setTurnImminent(turnImminent, deviatedFromRoute); - updateDistance(); } } @@ -93,14 +92,6 @@ public class NextTurnInfoWidget extends TextInfoWidget { } } - public void setExitOut(int exit) { - // TODO exit -// if(turnDrawable.exitOut != exit) { -// turnDrawable.e -// } -// TODO; - } - @Override public boolean updateInfo(DrawSettings drawSettings) { return false; @@ -152,6 +143,7 @@ public class NextTurnInfoWidget extends TextInfoWidget { } else { paintRouteDirection.setColor(ctx.getResources().getColor(R.color.nav_arrow_distant)); } + invalidateSelf(); } diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java index 8ba4c9b00a..6bb39e6f63 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java @@ -77,7 +77,6 @@ public class RouteInfoWidgetsFactory { NextDirectionInfo r = routingHelper.getNextRouteDirectionInfo(calc1, true); if (r != null && r.distanceTo > 0 && r.directionInfo != null) { turnType = r.directionInfo.getTurnType(); - setExitOut(turnType.getExitOut()); nextTurnDistance = r.distanceTo; turnImminent = r.imminent; }