From ff236c7d81e9fc1a571fe9d3906e111961a1a77e Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 10 Sep 2020 15:35:20 +0200 Subject: [PATCH 1/2] Update constants --- OsmAnd/src/net/osmand/plus/server/endpoints/TileEndpoint.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/server/endpoints/TileEndpoint.java b/OsmAnd/src/net/osmand/plus/server/endpoints/TileEndpoint.java index 92746ab301..3599b83d5c 100644 --- a/OsmAnd/src/net/osmand/plus/server/endpoints/TileEndpoint.java +++ b/OsmAnd/src/net/osmand/plus/server/endpoints/TileEndpoint.java @@ -17,8 +17,8 @@ import static fi.iki.elonen.NanoHTTPD.newFixedLengthResponse; public class TileEndpoint implements OsmAndHttpServer.ApiEndpoint { - private static final int TIMEOUT_STEP = 500; - private static final int TIMEOUT = 10000; + private static final int TIMEOUT_STEP = 150; + private static final int TIMEOUT = 15000; private static final Log LOG = PlatformUtil.getLog(TileEndpoint.class); From 98f0823bbb33efa7ac3cc25379f9668f5c0d07f7 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 10 Sep 2020 15:38:34 +0200 Subject: [PATCH 2/2] Update constant --- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index a38e5bbaf1..27d6300914 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -880,7 +880,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback { public void setCurrentViewport(RotatedTileBox viewport) { currentViewport = viewport; - refreshMap(); + refreshMap(true); } public Bitmap getBufferBitmap() {