Attempt to fix 537
This commit is contained in:
parent
7dd5f3bdbf
commit
a4374d7eb9
3 changed files with 5 additions and 5 deletions
|
@ -103,10 +103,10 @@ public class MapVectorLayer extends BaseMapLayer {
|
|||
resourceManager.updateRendererMap(rotatedTileBox);
|
||||
// does it slow down Map refreshing ?
|
||||
// Arguments : 1. Map request to read data slows whole process // 2. It works in operating memory
|
||||
if (!warningToSwitchMapShown) {
|
||||
if (warningToSwitchMapShown < 3) {
|
||||
if (!resourceManager.getRenderer().containsLatLonMapData(view.getLatitude(), view.getLongitude(), view.getZoom())) {
|
||||
Toast.makeText(view.getContext(), R.string.switch_to_raster_map_to_see, Toast.LENGTH_LONG).show();
|
||||
warningToSwitchMapShown = true;
|
||||
warningToSwitchMapShown++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ package net.osmand.plus.views;
|
|||
public abstract class BaseMapLayer implements OsmandMapLayer {
|
||||
|
||||
private int alpha = 255;
|
||||
protected boolean warningToSwitchMapShown = false;
|
||||
protected int warningToSwitchMapShown = 0;
|
||||
|
||||
public int getMaximumShownMapZoom(){
|
||||
return 21;
|
||||
|
|
|
@ -206,10 +206,10 @@ public class MapTileLayer extends BaseMapLayer {
|
|||
}
|
||||
}
|
||||
|
||||
if(mainMap && !oneTileShown && !useInternet && !warningToSwitchMapShown){
|
||||
if(mainMap && !oneTileShown && !useInternet && warningToSwitchMapShown < 3){
|
||||
if(resourceManager.getRenderer().containsLatLonMapData(view.getLatitude(), view.getLongitude(), nzoom)){
|
||||
Toast.makeText(view.getContext(), R.string.switch_to_vector_map_to_see, Toast.LENGTH_LONG).show();
|
||||
warningToSwitchMapShown = true;
|
||||
warningToSwitchMapShown++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue