From 576e70a6065e59768cee761f1273ba813af4239b Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 9 Sep 2020 15:44:39 +0300 Subject: [PATCH] update --- OsmAnd/src/net/osmand/plus/base/MapViewTrackingUtilities.java | 4 +++- OsmAnd/src/net/osmand/plus/server/endpoints/TileEndpoint.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/base/MapViewTrackingUtilities.java b/OsmAnd/src/net/osmand/plus/base/MapViewTrackingUtilities.java index 601fb62909..542d125afe 100644 --- a/OsmAnd/src/net/osmand/plus/base/MapViewTrackingUtilities.java +++ b/OsmAnd/src/net/osmand/plus/base/MapViewTrackingUtilities.java @@ -232,7 +232,9 @@ public class MapViewTrackingUtilities implements OsmAndLocationListener, IMapLoc switchToRoutePlanningMode(); } // When location is changed we need to refresh map in order to show movement! - mapView.refreshMap(); + if (!mapView.isServerRendering()){ + mapView.refreshMap(); + } } if (dashboard != null) { diff --git a/OsmAnd/src/net/osmand/plus/server/endpoints/TileEndpoint.java b/OsmAnd/src/net/osmand/plus/server/endpoints/TileEndpoint.java index de41803cef..467903bf9d 100644 --- a/OsmAnd/src/net/osmand/plus/server/endpoints/TileEndpoint.java +++ b/OsmAnd/src/net/osmand/plus/server/endpoints/TileEndpoint.java @@ -62,7 +62,7 @@ public class TileEndpoint implements OsmAndHttpServer.ApiEndpoint { } @Override - public synchronized NanoHTTPD.Response process(NanoHTTPD.IHTTPSession session, String url) { + public NanoHTTPD.Response process(NanoHTTPD.IHTTPSession session, String url) { // https://tile.osmand.net/hd/6/55/25.png int extInd = url.indexOf('.'); if (extInd >= 0) {