Fix small bug

This commit is contained in:
Victor Shcherb 2013-06-06 01:35:42 +02:00
parent b00da5c5dd
commit f899086dbb
2 changed files with 4 additions and 3 deletions

View file

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

View file

@ -272,6 +272,7 @@ public class RouteInfoWidgetsFactory {
showArrival.set(!showArrival.get());
leftTimeControl.setImageDrawable(showArrival.get()? time : timeToGo);
leftTimeControl.requestLayout();
map.getMapView().refreshMap();
}
});