Update OsmAnd/src/net/osmand/plus/views/RouteInfoControls.java
This commit is contained in:
parent
21515429ca
commit
c3dc94b05b
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue