From 12d54fd9411e511c23c77c7d9837caeb40c79028 Mon Sep 17 00:00:00 2001 From: androiddevkkotlin Date: Tue, 8 Dec 2020 20:32:23 +0200 Subject: [PATCH] Change sign "railway crossing" in Canada --- .../net/osmand/plus/views/mapwidgets/widgets/AlarmWidget.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/widgets/AlarmWidget.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/widgets/AlarmWidget.java index 2dc092139e..9862993386 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/widgets/AlarmWidget.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/widgets/AlarmWidget.java @@ -116,7 +116,9 @@ public class AlarmWidget { } else if (alarm.getType() == AlarmInfo.AlarmInfoType.STOP) { locimgId = R.drawable.warnings_stop; } else if (alarm.getType() == AlarmInfo.AlarmInfoType.RAILWAY) { - if (americanType) { + if (isCanadianRegion) { + locimgId = R.drawable.warnings_railways_ca; + } else if (americanType) { locimgId = R.drawable.warnings_railways_us; } else { locimgId = R.drawable.warnings_railways;