Change online trigger

This commit is contained in:
Mieszko Wrzeszczyński 2019-01-03 19:50:11 +01:00
parent ea0d6e1e96
commit 8bcecbbed5

View File

@ -190,7 +190,7 @@ public class BackgroundLocalizationService extends Service {
.map(MapUtils::checkIfCoordinateIsValid).takeWhile(s -> !s).toList().size() == coordinatesHistory.size();
Boolean shouldAbbreviateTimeInterval = Stream.of(coordinatesHistory).
map(MapUtils::checkIfCoordinateIsValid).toList().get(coordinatesHistory.size() - 1);
map(MapUtils::checkIfCoordinateIsValid).toList().size() > 0;
if (shouldExtendTimeInterval) {
notify_interval = notify_interval_outside_building;