code US traffic warning signs
This commit is contained in:
parent
8230b71e93
commit
cb4067d727
1 changed files with 15 additions and 3 deletions
|
@ -737,17 +737,29 @@ public class RouteInfoWidgetsFactory {
|
|||
} else if(alarm.getType() == AlarmInfoType.TOLL_BOOTH) {
|
||||
text = "$";
|
||||
} else if(alarm.getType() == AlarmInfoType.TRAFFIC_CALMING) {
|
||||
if(settings.DRIVING_REGION.get().americanSigns){
|
||||
locimgId = R.drawable.warnings_traffic_calming_us;
|
||||
} else {
|
||||
locimgId = R.drawable.warnings_traffic_calming;
|
||||
}
|
||||
text = "";
|
||||
} else if(alarm.getType() == AlarmInfoType.STOP) {
|
||||
locimgId = R.drawable.warnings_stop;
|
||||
text = "";
|
||||
//text = "STOP";
|
||||
} else if(alarm.getType() == AlarmInfoType.RAILWAY) {
|
||||
if(settings.DRIVING_REGION.get().americanSigns){
|
||||
locimgId = R.drawable.warnings_railways_us;
|
||||
} else {
|
||||
locimgId = R.drawable.warnings_railways;
|
||||
}
|
||||
} else if(alarm.getType() == AlarmInfoType.PEDESTRIAN) {
|
||||
if(settings.DRIVING_REGION.get().americanSigns){
|
||||
locimgId = R.drawable.warnings_pedestrian_us;
|
||||
} else {
|
||||
locimgId = R.drawable.warnings_pedestrian;
|
||||
}
|
||||
}
|
||||
visible = (text != null && text.length() > 0) || locimgId != 0;
|
||||
if (visible) {
|
||||
if (alarm.getType() == AlarmInfoType.SPEED_CAMERA) {
|
||||
|
|
Loading…
Reference in a new issue