Make constant to calculate calorie of cycling to fields. Change coe style.

This commit is contained in:
youtaol
2013-08-22 10:03:33 +08:00
parent b9fd09d043
commit 83b1fb67bf
2 changed files with 19 additions and 16 deletions
@@ -575,11 +575,10 @@ public class TripStatistics implements Parcelable {
/**
* Adds calorie value.
*
* @param calorie add the value to the total calorie
* @param calorieAdded add the value to the total calorie
*/
@SuppressWarnings("hiding")
public void addCalorie(double calorie) {
this.calorie += calorie;
public void addCalorie(double calorieAdded) {
this.calorie += calorieAdded;
}
/**