willowtreeapps/vocable-android

Stop using View.tag on CategoryButton

Closed this issue · 0 comments

View.tag is typed as an Object, which is problematic since you get into type checking and a lack of guarantees that the field's been set correctly.

Let's give CategoryButton a property of Category that's more explicit, and the button can also then be responsible for setting up its action and display based on that Category.