diff --git a/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java b/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java index 32c411811a..1817810c27 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java @@ -274,7 +274,7 @@ public class WaypointHelper { // For STOP first check if it has directional info if (info != null && info.getType() != null && info.getType() == AlarmInfoType.STOP) { - if (ro.isStopApplicable(ro.bearingVsRouteDirection(loc), i)) { + if (!ro.isStopApplicable(ro.bearingVsRouteDirection(loc), i)) { info = null; } } diff --git a/OsmAnd/src/net/osmand/plus/routing/RouteCalculationResult.java b/OsmAnd/src/net/osmand/plus/routing/RouteCalculationResult.java index e9fc9d81f2..510fcb8057 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RouteCalculationResult.java +++ b/OsmAnd/src/net/osmand/plus/routing/RouteCalculationResult.java @@ -191,7 +191,7 @@ public class RouteCalculationResult { loc.setLongitude(MapUtils.get31LongitudeX(x31)); AlarmInfo info = AlarmInfo.createAlarmInfo(typeRule, locInd, loc); // For STOP first check if it has directional info - if ((info != null) && !((info.getType() == AlarmInfoType.STOP) && res.getObject().isStopApplicable(res.isForwardDirection(), intId))) { + if ((info != null) && !((info.getType() == AlarmInfoType.STOP) && !res.getObject().isStopApplicable(res.isForwardDirection(), intId))) { alarms.add(info); } }