diff --git a/OsmAnd/res/layout/map_context_menu_fragment.xml b/OsmAnd/res/layout/map_context_menu_fragment.xml index 6ebfddcc10..bfb51ff362 100644 --- a/OsmAnd/res/layout/map_context_menu_fragment.xml +++ b/OsmAnd/res/layout/map_context_menu_fragment.xml @@ -122,7 +122,7 @@ @@ -137,7 +137,12 @@ android:paddingBottom="3dp" android:paddingLeft="@dimen/context_menu_padding_margin_default" android:paddingRight="@dimen/context_menu_padding_margin_default"> - + + + + diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java index 91e8ce13b5..d8667495d4 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java @@ -1289,7 +1289,7 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo } int line3Height = 0; - View line3Container = view.findViewById(R.id.additional_info_row); + View line3Container = view.findViewById(R.id.additional_info_row_container); if (line3Container.getVisibility() == View.VISIBLE) { line3Height = line3Container.getMeasuredHeight(); } @@ -1522,12 +1522,16 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo && compassView.getVisibility() == View.INVISIBLE && titleButtonContainer.getVisibility() == View.GONE && downloadButtonsContainer.getVisibility() == View.GONE - && titleBottomButtonContainer.getVisibility() == View.GONE - && titleProgressContainer.getVisibility() == View.VISIBLE) { + && titleBottomButtonContainer.getVisibility() == View.GONE) { + if (titleProgressContainer.getVisibility() == View.VISIBLE) { + view.findViewById(R.id.additional_info_row_container).setVisibility(View.GONE); + } view.findViewById(R.id.additional_info_row).setVisibility(View.GONE); } else { + view.findViewById(R.id.additional_info_row_container).setVisibility(View.VISIBLE); view.findViewById(R.id.additional_info_row).setVisibility(View.VISIBLE); } + runLayoutListener(); } private void updateDistanceDirection() {