mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-12 05:43:07 +02:00
Change code style.
This commit is contained in:
@@ -193,9 +193,10 @@ public class TripStatisticsUpdater {
|
||||
// TODO 1: How to get the value of weight.
|
||||
// TODO 2: How to get the value of ActivityType.
|
||||
|
||||
double value = CalorieUtils.getCalories(lastMovingLocation, location,
|
||||
// Update calorie
|
||||
double calorie = CalorieUtils.getCalories(lastMovingLocation, location,
|
||||
gradeBuffer.getAverage(), 65, ActivityType.FOOT);
|
||||
currentSegment.addCaloticExpenditure(value);
|
||||
currentSegment.addCalorie(calorie);
|
||||
|
||||
lastLocation = location;
|
||||
lastMovingLocation = location;
|
||||
|
||||
Reference in New Issue
Block a user