Fix unnecessary displaying of map controls

This commit is contained in:
Alexander Sytnyk 2017-12-05 18:07:48 +02:00
parent 97a3e251de
commit 36ec3e9fb0

View file

@ -1005,7 +1005,9 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
}
public void readLocationToShow() {
mapLayers.getMapControlsLayer().showMapControlsIfHidden();
if (!getDashboard().isVisible()) {
mapLayers.getMapControlsLayer().showMapControlsIfHidden();
}
LatLon cur = new LatLon(mapView.getLatitude(), mapView.getLongitude());
LatLon latLonToShow = settings.getAndClearMapLocationToShow();