small update to maxSpeed conditions
This commit is contained in:
parent
740e81e1e2
commit
c9dbc3e5e1
1 changed files with 3 additions and 1 deletions
|
@ -398,8 +398,10 @@ public class RouteInfoWidgetsFactory {
|
|||
}
|
||||
mx = ro.getMaximumSpeed(direction);
|
||||
}
|
||||
} else {
|
||||
} else if (rh != null) {
|
||||
mx = rh.getCurrentMaxSpeed();
|
||||
} else {
|
||||
mx = 0f;
|
||||
}
|
||||
if (cachedSpeed != mx) {
|
||||
cachedSpeed = mx;
|
||||
|
|
Loading…
Reference in a new issue