diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index 13f084794a..e5d466854c 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -440,6 +440,10 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven if (pbExtView.getVisibility() == View.VISIBLE) { pbExtView.setVisibility(View.GONE); } + if (MapRouteInfoMenu.isVisible()) { + pb.setVisibility(View.GONE); + return; + } if (pb.getVisibility() == View.GONE) { pb.setVisibility(View.VISIBLE); } diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java index e17c31b794..0edd5072d6 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java @@ -764,7 +764,6 @@ public class RouteInfoWidgetsFactory { private int dist; private LanesDrawable lanesDrawable; private View centerInfo; - private View progress; private int shadowRadius; public LanesControl(final MapActivity map, final OsmandMapTileView view) { @@ -772,7 +771,6 @@ public class RouteInfoWidgetsFactory { lanesText = (TextView) map.findViewById(R.id.map_lanes_dist_text); lanesShadowText = (TextView) map.findViewById(R.id.map_lanes_dist_text_shadow); centerInfo = (View) map.findViewById(R.id.map_center_info); - progress = (View) map.findViewById(R.id.map_horizontal_progress); lanesDrawable = new LanesDrawable(map, map.getMapView().getScaleCoefficient()); lanesView.setImageDrawable(lanesDrawable); trackingUtilities = map.getMapViewTrackingUtilities(); @@ -859,7 +857,7 @@ public class RouteInfoWidgetsFactory { updateVisibility(lanesShadowText, visible && shadowRadius > 0); updateVisibility(lanesText, visible); updateVisibility(lanesView, visible); - updateVisibility(centerInfo, visible || progress.getVisibility() == View.VISIBLE); + updateVisibility(centerInfo, visible); return true; } }