Fix left time and time to go in display route mode
This commit is contained in:
parent
68faacec3f
commit
b8513bd145
1 changed files with 2 additions and 2 deletions
|
@ -233,10 +233,10 @@ public class RouteInfoWidgetsFactory {
|
|||
public boolean updateInfo(DrawSettings drawSettings) {
|
||||
int time = 0;
|
||||
if (routingHelper != null && routingHelper.isRouteCalculated()) {
|
||||
boolean followingMode = routingHelper.isFollowingMode();
|
||||
//boolean followingMode = routingHelper.isFollowingMode();
|
||||
time = routingHelper.getLeftTime();
|
||||
if (time != 0) {
|
||||
if (followingMode && showArrival.get()) {
|
||||
if (/*followingMode && */showArrival.get()) {
|
||||
long toFindTime = time * 1000 + System.currentTimeMillis();
|
||||
if (Math.abs(toFindTime - cachedLeftTime) > 30000) {
|
||||
cachedLeftTime = toFindTime;
|
||||
|
|
Loading…
Reference in a new issue