From 791f88b239595c45d5f305e0771301a195a0d423 Mon Sep 17 00:00:00 2001 From: Chumva Date: Fri, 18 May 2018 14:27:56 +0300 Subject: [PATCH] fixed empty space in regions --- .../osmand/plus/mapcontextmenu/MapContextMenuFragment.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java index d812be50ce..ff43c1ec4f 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java @@ -1115,7 +1115,6 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo } } - updateAdditionalInfoVisibility(); final ProgressBar progressBar = (ProgressBar) view.findViewById(R.id.progressBar); final TextView progressTitle = (TextView) view.findViewById(R.id.progressTitle); progressTitle.setText(titleProgressController.caption); @@ -1128,6 +1127,7 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo } else { titleProgressContainer.setVisibility(View.GONE); } + updateAdditionalInfoVisibility(); } } @@ -1484,6 +1484,7 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo additionalInfoImageView.setVisibility(showAdditionalImage ? View.VISIBLE : View.GONE); } updateCompassVisibility(); + updateAdditionalInfoVisibility(); } private void updateCompassVisibility() { @@ -1504,12 +1505,10 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo View additionalInfoImageView = (ImageView) view.findViewById(R.id.additional_info_image_view); View additionalInfoTextView = (TextView) view.findViewById(R.id.additional_info_text_view); View compassView = view.findViewById(R.id.compass_layout); - View titleProgressContainer = view.findViewById(R.id.title_progress_container); if (line3.getVisibility() == View.GONE && additionalInfoImageView.getVisibility() == View.GONE && additionalInfoTextView.getVisibility() == View.GONE - && titleProgressContainer.getVisibility() == View.VISIBLE && compassView.getVisibility() == View.INVISIBLE) { view.findViewById(R.id.additional_info_row).setVisibility(View.GONE); } else {