Fix left time and time to go in display route mode

This commit is contained in:
vshcherb 2014-02-24 01:23:13 +01:00
parent 68faacec3f
commit b8513bd145

View file

@ -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;