Fix #7806
This commit is contained in:
parent
2a045a1140
commit
a671b3908a
2 changed files with 17 additions and 5 deletions
|
@ -1190,9 +1190,7 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
|
|||
}
|
||||
|
||||
public void readLocationToShow() {
|
||||
if (!getDashboard().isVisible()) {
|
||||
mapLayers.getMapControlsLayer().showMapControlsIfHidden();
|
||||
}
|
||||
showMapControls();
|
||||
|
||||
LatLon cur = new LatLon(mapView.getLatitude(), mapView.getLongitude());
|
||||
LatLon latLonToShow = settings.getAndClearMapLocationToShow();
|
||||
|
@ -1482,6 +1480,11 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
|
|||
if (mapLayers.getMapQuickActionLayer() != null) {
|
||||
mapLayers.getMapQuickActionLayer().refreshLayer();
|
||||
}
|
||||
MapControlsLayer mapControlsLayer = mapLayers.getMapControlsLayer();
|
||||
if (mapControlsLayer != null && (!mapControlsLayer.isMapControlsVisible() || settings.MAP_EMPTY_STATE_ALLOWED.get())) {
|
||||
showMapControls();
|
||||
}
|
||||
|
||||
mapLayers.updateLayers(mapView);
|
||||
mapActions.updateDrawerMenu();
|
||||
mapView.setComplexZoom(mapView.getZoom(), mapView.getSettingsMapDensity());
|
||||
|
@ -1636,6 +1639,12 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
|
|||
}, 2500);
|
||||
}
|
||||
|
||||
public void showMapControls() {
|
||||
if (!getDashboard().isVisible() && mapLayers.getMapControlsLayer() != null) {
|
||||
mapLayers.getMapControlsLayer().showMapControlsIfHidden();
|
||||
}
|
||||
}
|
||||
|
||||
public OsmandMapTileView getMapView() {
|
||||
return mapView;
|
||||
}
|
||||
|
|
|
@ -974,8 +974,11 @@ public class ContextMenuLayer extends OsmandMapLayer {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!processed && activity.getMyApplication().getSettings().MAP_EMPTY_STATE_ALLOWED.get()) {
|
||||
activity.getMapLayers().getMapControlsLayer().switchMapControlsVisibility(true);
|
||||
if (!processed) {
|
||||
MapControlsLayer mapControlsLayer = activity.getMapLayers().getMapControlsLayer();
|
||||
if (!mapControlsLayer.isMapControlsVisible() || activity.getMyApplication().getSettings().MAP_EMPTY_STATE_ALLOWED.get()) {
|
||||
mapControlsLayer.switchMapControlsVisibility(true);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue