code US traffic warning signs

This commit is contained in:
sonora 2014-12-20 17:13:12 +01:00
parent 8230b71e93
commit cb4067d727

View file

@ -737,17 +737,29 @@ public class RouteInfoWidgetsFactory {
} else if(alarm.getType() == AlarmInfoType.TOLL_BOOTH) { } else if(alarm.getType() == AlarmInfoType.TOLL_BOOTH) {
text = "$"; text = "$";
} else if(alarm.getType() == AlarmInfoType.TRAFFIC_CALMING) { } 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; locimgId = R.drawable.warnings_traffic_calming;
}
text = ""; text = "";
} else if(alarm.getType() == AlarmInfoType.STOP) { } else if(alarm.getType() == AlarmInfoType.STOP) {
locimgId = R.drawable.warnings_stop; locimgId = R.drawable.warnings_stop;
text = ""; text = "";
//text = "STOP"; //text = "STOP";
} else if(alarm.getType() == AlarmInfoType.RAILWAY) { } else if(alarm.getType() == AlarmInfoType.RAILWAY) {
if(settings.DRIVING_REGION.get().americanSigns){
locimgId = R.drawable.warnings_railways_us;
} else {
locimgId = R.drawable.warnings_railways; locimgId = R.drawable.warnings_railways;
}
} else if(alarm.getType() == AlarmInfoType.PEDESTRIAN) { } else if(alarm.getType() == AlarmInfoType.PEDESTRIAN) {
if(settings.DRIVING_REGION.get().americanSigns){
locimgId = R.drawable.warnings_pedestrian_us;
} else {
locimgId = R.drawable.warnings_pedestrian; locimgId = R.drawable.warnings_pedestrian;
} }
}
visible = (text != null && text.length() > 0) || locimgId != 0; visible = (text != null && text.length() > 0) || locimgId != 0;
if (visible) { if (visible) {
if (alarm.getType() == AlarmInfoType.SPEED_CAMERA) { if (alarm.getType() == AlarmInfoType.SPEED_CAMERA) {