Fix small bug
This commit is contained in:
parent
b00da5c5dd
commit
f899086dbb
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -272,6 +272,7 @@ public class RouteInfoWidgetsFactory {
|
|||
showArrival.set(!showArrival.get());
|
||||
leftTimeControl.setImageDrawable(showArrival.get()? time : timeToGo);
|
||||
leftTimeControl.requestLayout();
|
||||
map.getMapView().refreshMap();
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue