diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index f8ca885672..0389e3e46f 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -575,13 +575,13 @@ public class OsmandMapTileView extends SurfaceView implements IMapDownloaderCall } // this method could be called in non UI thread - public void refreshMap(final boolean force) { - if (!handler.hasMessages(1) || force) { + public void refreshMap(final boolean updateVectorRendering) { + if (!handler.hasMessages(1) || updateVectorRendering) { handler.removeMessages(1); Message msg = Message.obtain(handler, new Runnable() { @Override public void run() { - refreshMapInternal(force); + refreshMapInternal(updateVectorRendering); } }); msg.what = 1; diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java index 74dc0ab57e..f9b95c8ff0 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java @@ -272,6 +272,7 @@ public class RouteInfoWidgetsFactory { showArrival.set(!showArrival.get()); leftTimeControl.setImageDrawable(showArrival.get()? time : timeToGo); leftTimeControl.requestLayout(); + map.getMapView().refreshMap(); } });