Fix issue route animation with gpx routing

This commit is contained in:
Victor Shcherb 2013-02-05 01:17:14 +01:00
parent 89e8a036b3
commit 716e38d6a4

View file

@ -103,7 +103,7 @@ public class RouteAnimation {
current.setSpeed(meters / intervalTime * coeff);
}
current.setTime(System.currentTimeMillis());
if(!current.hasAccuracy()) {
if(!current.hasAccuracy() || Double.isNaN(current.getAccuracy())) {
current.setAccuracy(5);
}
if (prev != null && prev.distanceTo(current) > 3) {