Skip to content

Move the ImageView conditional into polymorphism

Mike Burns requested to merge image-view-refactor into master

Whenever we dispatch on a property of a Status model for determining which icon to show, move that dispatch into a factory method.

This helps simplify the ViewHolder code while clarifying which Status properties can lead to which icons.

Merge request reports