try fix ADN-160 (possibly wrong EnumSet)

This commit is contained in:
sonora 2014-09-10 12:22:17 +02:00
parent b12bd601d9
commit 8e752376ca

View file

@ -335,7 +335,7 @@ public class WaypointHelper {
} else if (type == POI) { } else if (type == POI) {
getVoiceRouter().approachPoi(lastKnownLocation, approachPoints); getVoiceRouter().approachPoi(lastKnownLocation, approachPoints);
} else if (type == ALARMS) { } else if (type == ALARMS) {
EnumSet<AlarmInfoType> ait = EnumSet.noneOf(AlarmInfoType.class); EnumSet<AlarmInfoType> ait = EnumSet.allOf(AlarmInfoType.class);
for(LocationPointWrapper pw : announcePoints) { for(LocationPointWrapper pw : announcePoints) {
ait.add(((AlarmInfo) pw.point).getType()); ait.add(((AlarmInfo) pw.point).getType());
} }