Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2014-12-18 12:08:45 +01:00
commit caa3bab258
6 changed files with 13 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View file

@ -11,12 +11,12 @@ public class AlarmInfo implements LocationPoint {
SPEED_CAMERA(1),
SPEED_LIMIT(2),
BORDER_CONTROL(3),
TRAFFIC_CALMING(4),
TOLL_BOOTH(5),
STOP(6),
MAXIMUM(7),
RAILWAY(4),
TRAFFIC_CALMING(5),
TOLL_BOOTH(6),
STOP(7),
PEDESTRIAN(8),
RAILWAY(9);
MAXIMUM(9);
private int priority;
@ -118,6 +118,10 @@ public class AlarmInfo implements LocationPoint {
}
} else if("traffic_calming".equals(ruleType.getTag())) {
alarmInfo = new AlarmInfo(AlarmInfoType.TRAFFIC_CALMING, locInd);
} else if ("railway".equals(ruleType.getTag()) && "level_crossing".equals(ruleType.getValue())) {
alarmInfo = new AlarmInfo(AlarmInfoType.RAILWAY, locInd);
} else if ("crossing".equals(ruleType.getTag()) && "uncontrolled".equals(ruleType.getValue())){
alarmInfo = new AlarmInfo(AlarmInfoType.PEDESTRIAN, locInd);
}
if(alarmInfo != null) {
alarmInfo.setLatLon(loc.getLatitude(), loc.getLongitude());

View file

@ -743,6 +743,10 @@ public class RouteInfoWidgetsFactory {
locimgId = R.drawable.warnings_stop;
text = "";
//text = "STOP";
} else if(alarm.getType() == AlarmInfoType.RAILWAY) {
locimgId = R.drawable.warnings_railways;
} else if(alarm.getType() == AlarmInfoType.PEDESTRIAN) {
locimgId = R.drawable.warnings_pedestrian;
}
visible = (text != null && text.length() > 0) || locimgId != 0;
if (visible) {