Dismiss also for Transport

This commit is contained in:
sonora 2019-03-11 22:01:57 +01:00
parent 91be1a1249
commit e1392212db

View file

@ -801,7 +801,7 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
View cancelButton = mainView.findViewById(R.id.cancel_button); View cancelButton = mainView.findViewById(R.id.cancel_button);
TextView cancelButtonText = (TextView) mainView.findViewById(R.id.cancel_button_descr); TextView cancelButtonText = (TextView) mainView.findViewById(R.id.cancel_button_descr);
if (routingHelper.isRouteCalculated() || routingHelper.isRouteBeingCalculated()) { if (routingHelper.isRouteCalculated() || routingHelper.isRouteBeingCalculated() || isTransportRouteCalculated()) {
cancelButtonText.setText(R.string.shared_string_dismiss); cancelButtonText.setText(R.string.shared_string_dismiss);
} else { } else {
cancelButtonText.setText(R.string.shared_string_cancel); cancelButtonText.setText(R.string.shared_string_cancel);