Fix dashboard

This commit is contained in:
PavelRatushny 2017-07-26 15:59:30 +03:00
parent 1dffa85992
commit 26d58d894e
2 changed files with 1 additions and 2 deletions

View file

@ -795,6 +795,7 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, DynamicLis
}
if (visible) {
mapActivity.dismissCardDialog();
mapActivity.getContextMenu().hideMenues();
mapViewLocation = mapActivity.getMapLocation();
mapRotation = mapActivity.getMapRotate();

View file

@ -247,7 +247,6 @@ public class MapControlsLayer extends OsmandMapLayer {
configureMap.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mapActivity.dismissCardDialog();
MapActivity.clearPrevActivityIntent();
mapActivity.getDashboard().setDashboardVisibility(true, DashboardType.CONFIGURE_MAP);
}
@ -410,7 +409,6 @@ public class MapControlsLayer extends OsmandMapLayer {
public void onClick(View v) {
MapActivity.clearPrevActivityIntent();
if (dash) {
mapActivity.dismissCardDialog();
mapActivity.getDashboard().setDashboardVisibility(true, DashboardType.DASHBOARD);
} else {
mapActivity.openDrawer();