From c3dc94b05b56103d774da1c16ab9510124b63bdd Mon Sep 17 00:00:00 2001 From: vshcherb Date: Sun, 7 Oct 2012 02:10:32 +0300 Subject: [PATCH] Update OsmAnd/src/net/osmand/plus/views/RouteInfoControls.java --- OsmAnd/src/net/osmand/plus/views/RouteInfoControls.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/views/RouteInfoControls.java b/OsmAnd/src/net/osmand/plus/views/RouteInfoControls.java index 2b78d00b2b..31cbbd1ff3 100644 --- a/OsmAnd/src/net/osmand/plus/views/RouteInfoControls.java +++ b/OsmAnd/src/net/osmand/plus/views/RouteInfoControls.java @@ -599,6 +599,7 @@ public class RouteInfoControls { AlarmInfo alarm = routingHelper.getMostImportantAlarm(settings.METRIC_SYSTEM.get(), cams); if(alarm != null) { int locimgId = 0; + String text = null; if(alarm.getType() == AlarmInfo.SPEED_LIMIT) { text = alarm.getIntValue() +""; } else if(alarm.getType() == AlarmInfo.SPEED_CAMERA) { @@ -631,6 +632,11 @@ public class RouteInfoControls { } else { img = BitmapFactory.decodeResource(getResources(), locimgId); } + invalidate(); + } + if(text != null && !text.equals(this.text)) { + this.text = text; + invalidate(); } } }