Distinguish Cancel and Dismiss
This commit is contained in:
parent
b53f27a200
commit
91be1a1249
1 changed files with 6 additions and 0 deletions
|
@ -800,6 +800,12 @@ 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);
|
||||||
|
if (routingHelper.isRouteCalculated() || routingHelper.isRouteBeingCalculated()) {
|
||||||
|
cancelButtonText.setText(R.string.shared_string_dismiss);
|
||||||
|
} else {
|
||||||
|
cancelButtonText.setText(R.string.shared_string_cancel);
|
||||||
|
}
|
||||||
AndroidUtils.setBackground(app, cancelButton, nightMode, R.color.card_and_list_background_light, R.color.card_and_list_background_dark);
|
AndroidUtils.setBackground(app, cancelButton, nightMode, R.color.card_and_list_background_light, R.color.card_and_list_background_dark);
|
||||||
cancelButton.setOnClickListener(new OnClickListener() {
|
cancelButton.setOnClickListener(new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue