Change button icon color on tap in osm bug context menu

This commit is contained in:
Alexander Sytnyk 2018-01-12 12:13:42 +02:00
parent c6497ba74a
commit 45aafbf884

View file

@ -39,7 +39,7 @@ public class OsmBugMenuController extends MenuController {
} else {
leftTitleButtonController.caption = getMapActivity().getString(R.string.poi_dialog_reopen);
}
leftTitleButtonController.leftIconId = R.drawable.ic_action_note_dark;
leftTitleButtonController.updateStateListDrawableIcon(R.drawable.ic_action_note_dark, true);
rightTitleButtonController = new TitleButtonController() {
@Override
@ -50,7 +50,7 @@ public class OsmBugMenuController extends MenuController {
}
};
rightTitleButtonController.caption = getMapActivity().getString(R.string.shared_string_close);
rightTitleButtonController.leftIconId = R.drawable.ic_action_remove_dark;
rightTitleButtonController.updateStateListDrawableIcon(R.drawable.ic_action_remove_dark, true);
updateData();
}