This commit is contained in:
Alexey Kulish 2016-09-13 19:18:47 +03:00
parent c04bf928c3
commit d731404295

View file

@ -61,6 +61,7 @@ public class ContextMenuLayer extends OsmandMapLayer {
private IContextMenuProvider selectedObjectContextMenuProvider;
private boolean cancelApplyingNewMarkerPosition;
private LatLon applyingMarkerLatLon;
private boolean wasCollapseButtonVisible;
public ContextMenuLayer(MapActivity activity) {
this.activity = activity;
@ -268,6 +269,12 @@ public class ContextMenuLayer extends OsmandMapLayer {
mInChangeMarkerPositionMode = false;
mark(View.VISIBLE, R.id.map_ruler_layout,
R.id.map_left_widgets_panel, R.id.map_right_widgets_panel, R.id.map_center_info);
View collapseButton = activity.findViewById(R.id.map_collapse_button);
if (collapseButton != null && wasCollapseButtonVisible) {
collapseButton.setVisibility(View.VISIBLE);
}
}
private void enterMovingMode(RotatedTileBox tileBox) {
@ -290,6 +297,14 @@ public class ContextMenuLayer extends OsmandMapLayer {
mark(View.INVISIBLE, R.id.map_ruler_layout,
R.id.map_left_widgets_panel, R.id.map_right_widgets_panel, R.id.map_center_info);
View collapseButton = activity.findViewById(R.id.map_collapse_button);
if (collapseButton != null && collapseButton.getVisibility() == View.VISIBLE) {
wasCollapseButtonVisible = true;
collapseButton.setVisibility(View.INVISIBLE);
} else {
wasCollapseButtonVisible = false;
}
view.refreshMap();
}