Change code style.

This commit is contained in:
youtaol
2013-10-30 17:42:24 +08:00
parent 7cc1f878b4
commit 4907dc26a0
4 changed files with 26 additions and 18 deletions
@@ -277,10 +277,11 @@ public class CalorieUtils {
*
* @param context the context
* @param track the track to calculate
* @param startTrackPointId the starting track point id. -1L to ignore
* @return the TripStatisticsUpdater of track
* @param startTrackPointId the starting track point id. Make this value less
* than 1 to calculate the entire track
* @return the calorie value of track
*/
public static TripStatisticsUpdater updateTrackStatistics(Context context,
public static double updateCalorie(Context context,
long startTrackPointId, Track track) {
ActivityType activityType = getActivityType(context, track.getCategory());
@@ -307,6 +308,6 @@ public class CalorieUtils {
}
}
track.setTripStatistics(tripStatisticsUpdater.getTripStatistics());
return tripStatisticsUpdater;
return tripStatisticsUpdater.getTripStatistics().getCalorie();
}
}