d-Rickyy-b/MGGVertretungsplan

Get color from TimeTableElement from Resources

d-Rickyy-b opened this issue · 1 comments

Currently the color is hard coded - not taken from the resources.
This should change, but would need a context.

public int getColor() {
switch (type) {
case CANCELLATION:
return Color.parseColor("#FF6961");
case SUBSTITUTION:
return Color.parseColor("#779ECB");
default:
return Color.parseColor("#F5F5F5");
}
}

It would be better to move the code to identify the color to the view, not to the datamodel.