forked from upstream-mirrors/OpenTracks
Bug fix, only update calorie in statistics markers
This commit is contained in:
@@ -233,10 +233,11 @@ public class CalorieUtils {
|
|||||||
* Yes, this will skip the first waypoint and that is intentional as the
|
* Yes, this will skip the first waypoint and that is intentional as the
|
||||||
* first waypoint holds the stats for the track.
|
* first waypoint holds the stats for the track.
|
||||||
*/
|
*/
|
||||||
while (cursor.moveToNext()) {
|
Waypoint waypoint = getNextStatisticsWaypoint(myTracksProviderUtils, cursor);
|
||||||
Waypoint waypoint = myTracksProviderUtils.createWaypoint(cursor);
|
while (waypoint != null) {
|
||||||
waypoint.getTripStatistics().setCalorie(0);
|
waypoint.getTripStatistics().setCalorie(0);
|
||||||
myTracksProviderUtils.updateWaypoint(waypoint);
|
myTracksProviderUtils.updateWaypoint(waypoint);
|
||||||
|
waypoint = getNextStatisticsWaypoint(myTracksProviderUtils, cursor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user