From 8e752376ca7482a4041ba339156c3bd89fb89e1a Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 10 Sep 2014 12:22:17 +0200 Subject: [PATCH] try fix ADN-160 (possibly wrong EnumSet) --- OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java b/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java index 3119531c8d..b956aa4ae6 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java @@ -335,7 +335,7 @@ public class WaypointHelper { } else if (type == POI) { getVoiceRouter().approachPoi(lastKnownLocation, approachPoints); } else if (type == ALARMS) { - EnumSet ait = EnumSet.noneOf(AlarmInfoType.class); + EnumSet ait = EnumSet.allOf(AlarmInfoType.class); for(LocationPointWrapper pw : announcePoints) { ait.add(((AlarmInfo) pw.point).getType()); }