forked from upstream-mirrors/OpenTracks
Make sure max speed is as large as avg moving speed
This commit is contained in:
@@ -357,7 +357,7 @@ public class TripStatistics implements Parcelable {
|
|||||||
* Gets the maximum speed in meters/second.
|
* Gets the maximum speed in meters/second.
|
||||||
*/
|
*/
|
||||||
public double getMaxSpeed() {
|
public double getMaxSpeed() {
|
||||||
return maxSpeed;
|
return Math.max(maxSpeed, getAverageMovingSpeed());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user