diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index 442261297f..a238657d9f 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -232,7 +232,8 @@ public class MapActivity extends AccessibleActivity { openGlSetup = true; } if(event == InitEvents.MAPS_INITIALIZED) { - mapView.refreshMap(true); + // TODO investigate if this false cause any issues! + mapView.refreshMap(false); if(dashboardOnMap != null) { dashboardOnMap.updateLocation(true, true, false); } @@ -244,7 +245,7 @@ public class MapActivity extends AccessibleActivity { if(!openGlSetup) { setupOpenGLView(false); } - mapView.refreshMap(true); + mapView.refreshMap(false); if(dashboardOnMap != null) { dashboardOnMap.updateLocation(true, true, false); } diff --git a/OsmAnd/src/net/osmand/plus/render/MapRenderRepositories.java b/OsmAnd/src/net/osmand/plus/render/MapRenderRepositories.java index 80d7967e99..719f5c9b14 100644 --- a/OsmAnd/src/net/osmand/plus/render/MapRenderRepositories.java +++ b/OsmAnd/src/net/osmand/plus/render/MapRenderRepositories.java @@ -182,13 +182,16 @@ public class MapRenderRepositories { return false; } if (requestedBox == null) { + log.info("RENDER MAP: update due to start"); return true; } if (drawSettings.isUpdateVectorRendering()) { + log.info("RENDER MAP: update due to request"); return true; } if (requestedBox.getZoom() != box.getZoom() || requestedBox.getMapDensity() != box.getMapDensity()) { + log.info("RENDER MAP: update due zoom/map density"); return true; } @@ -199,9 +202,14 @@ public class MapRenderRepositories { deltaRotate += 360; } if (Math.abs(deltaRotate) > 25) { + log.info("RENDER MAP: update due to rotation"); return true; } - return !requestedBox.containsTileBox(box); + boolean upd = !requestedBox.containsTileBox(box); + if(upd) { + log.info("RENDER MAP: update due to tile box"); + } + return upd; } public boolean isEmpty() { diff --git a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java index e3e85c87b7..953de8c1de 100644 --- a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java +++ b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java @@ -865,7 +865,6 @@ public class ResourceManager { } public void updateRendererMap(RotatedTileBox rotatedTileBox){ - log.info("RENDER MAP: force update the map"); renderer.interruptLoadingMap(); asyncLoadingThread.requestToLoadMap(new MapLoadRequest(rotatedTileBox)); }