Re-calculate the calorie while user change the activity type of track. Show standard "value_unknown" (-) when the activity type is not supported.

This commit is contained in:
youtaol
2013-09-06 14:54:02 +08:00
parent 7233137e93
commit 282c48f530
7 changed files with 72 additions and 23 deletions
@@ -586,6 +586,8 @@ public class TripStatistics implements Parcelable {
public void addCalorie(double calorieAdded) {
if (calorieAdded != INVALID_CALORIE) {
this.calorie += calorieAdded;
} else {
this.calorie = INVALID_CALORIE;
}
}