mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-11 21:43:05 +02:00
Make the default calorie to invalid. Fix an error while calculating the cycling calorie.
This commit is contained in:
@@ -62,16 +62,15 @@ public class TripStatistics implements Parcelable {
|
||||
// The min and max grade seen on this trip.
|
||||
private final ExtremityMonitor gradeExtremities = new ExtremityMonitor();
|
||||
|
||||
// The calorie of current track.
|
||||
private double calorie;
|
||||
|
||||
|
||||
/**
|
||||
* This value means the calorie value is invalid due to activity type is not
|
||||
* supported.
|
||||
*/
|
||||
public static final double INVALID_CALORIE = -1.0;
|
||||
|
||||
// The calorie of current track.
|
||||
private double calorie = INVALID_CALORIE;
|
||||
|
||||
/**
|
||||
* Default constructor.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user