1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 12:56:49 +01:00

Fix loop condition!

This commit is contained in:
cpfeiffer 2018-08-04 23:10:11 +02:00
parent fe401bdcf5
commit 5bca05caac

View File

@ -140,7 +140,7 @@ public class ActivityDetailsParser {
List<ActivityPoint> activityPointList = activityTrack.getTrackPoints();
Date gpsStartTime = null;
List<ActivityPoint> entriesToFixUp = new ArrayList<>();
while (pointer < activityPointList.size() + 1) {
while (pointer < activityPointList.size() - 1) {
ActivityPoint activityPoint = activityPointList.get(pointer);
if (activityPoint.getLocation() == null) {
pointer++;