Merge branch 'r3.3'
This commit is contained in:
commit
09828b89f1
4 changed files with 22 additions and 10 deletions
|
@ -242,7 +242,7 @@ public class ChooseRouteFragment extends BaseOsmAndFragment implements ContextMe
|
|||
if (mapActivity != null) {
|
||||
mapActivity.getSupportFragmentManager().beginTransaction().remove(this).commitAllowingStateLoss();
|
||||
if (routeInfoMenuState != -1) {
|
||||
mapActivity.getMapLayers().getMapControlsLayer().showRouteInfoMenu(routeInfoMenuState);
|
||||
mapActivity.getMapLayers().getMapControlsLayer().showRouteInfoControlDialog(routeInfoMenuState);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
@ -669,7 +669,6 @@ public class ChooseRouteFragment extends BaseOsmAndFragment implements ContextMe
|
|||
MapActivity mapActivity = getMapActivity();
|
||||
if (mapActivity != null) {
|
||||
int visibility = visible ? View.VISIBLE : View.GONE;
|
||||
mapActivity.findViewById(R.id.map_top_bar).setVisibility(visibility);
|
||||
mapActivity.findViewById(R.id.map_center_info).setVisibility(visibility);
|
||||
mapActivity.findViewById(R.id.map_left_widgets_panel).setVisibility(visibility);
|
||||
if (!openingRouteInfo) {
|
||||
|
|
|
@ -139,9 +139,6 @@ public class MapRouteInfoMenuFragment extends ContextMenuFragment {
|
|||
View appModesView = view.findViewById(R.id.app_modes);
|
||||
appModesView.setPadding(0, 0, appModesView.getPaddingRight(), 0);
|
||||
}
|
||||
|
||||
updateInfo(view);
|
||||
runLayoutListener();
|
||||
}
|
||||
return view;
|
||||
}
|
||||
|
@ -149,10 +146,26 @@ public class MapRouteInfoMenuFragment extends ContextMenuFragment {
|
|||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
if (menu == null) {
|
||||
dismiss();
|
||||
OsmandApplication app = getMyApplication();
|
||||
if (app != null) {
|
||||
if (menu == null) {
|
||||
dismiss();
|
||||
return;
|
||||
}
|
||||
updateControlButtons();
|
||||
updateInfo();
|
||||
View mainView = getMainView();
|
||||
if (mainView != null) {
|
||||
View progressBar = mainView.findViewById(R.id.progress_bar);
|
||||
boolean progressVisible = progressBar != null && progressBar.getVisibility() == View.VISIBLE;
|
||||
boolean routeCalculating = app.getRoutingHelper().isRouteBeingCalculated() || app.getTransportRoutingHelper().isRouteBeingCalculated();
|
||||
if (progressVisible && !routeCalculating) {
|
||||
hideRouteCalculationProgressBar();
|
||||
openMenuHalfScreen();
|
||||
}
|
||||
}
|
||||
menu.addTargetPointListener();
|
||||
}
|
||||
menu.addTargetPointListener();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -937,7 +937,7 @@ public class MapInfoWidgetsFactory {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (map.isTopToolbarActive() || !map.getContextMenu().shouldShowTopControls()) {
|
||||
if (map.isTopToolbarActive() || !map.getContextMenu().shouldShowTopControls() || MapRouteInfoMenu.chooseRoutesVisible) {
|
||||
updateVisibility(false);
|
||||
} else if (!showNextTurn && updateWaypoint()) {
|
||||
updateVisibility(true);
|
||||
|
|
|
@ -831,7 +831,7 @@ public class RouteInfoWidgetsFactory {
|
|||
}
|
||||
}
|
||||
}
|
||||
visible = loclanes != null && loclanes.length > 0;
|
||||
visible = loclanes != null && loclanes.length > 0 && !MapRouteInfoMenu.chooseRoutesVisible;
|
||||
if (visible) {
|
||||
if (!Arrays.equals(lanesDrawable.lanes, loclanes) ||
|
||||
(locimminent == 0) != lanesDrawable.imminent) {
|
||||
|
|
Loading…
Reference in a new issue