Fix remove button in impassible roads context menu

This commit is contained in:
Alexander Sytnyk 2018-01-22 12:38:49 +02:00
parent 55853d9212
commit d6fb7a07a2

View file

@ -21,7 +21,7 @@ public class ImpassibleRoadsMenuController extends MenuController {
super(new MenuBuilder(mapActivity), pointDescription, mapActivity);
this.route = route;
final OsmandApplication app = mapActivity.getMyApplication();
rightTitleButtonController = new TitleButtonController() {
leftTitleButtonController = new TitleButtonController() {
@Override
public void buttonPressed() {
app.getAvoidSpecificRoads().removeImpassableRoad(
@ -33,8 +33,8 @@ public class ImpassibleRoadsMenuController extends MenuController {
getMapActivity().getContextMenu().close();
}
};
rightTitleButtonController.caption = getMapActivity().getString(R.string.shared_string_remove);
rightTitleButtonController.leftIconId = R.drawable.ic_action_delete_dark;
leftTitleButtonController.caption = getMapActivity().getString(R.string.shared_string_remove);
leftTitleButtonController.updateStateListDrawableIcon(R.drawable.ic_action_delete_dark, true);
}
@Override