Fix small issues with new progress bar
This commit is contained in:
parent
c62f0ae66c
commit
5e26ec37d9
2 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue