This repository has been archived by the owner on Feb 20, 2023. It is now read-only.
Refactor the Pocket category colors into a singular data class #27457
Labels
compose
Tickets involving Composable changes
eng:health
Improve code health
Feature:PocketIntegration
Milestone
After the introduction of wallpaper-adjusted colors,
PocketCategoriesViewHolder
initializes four colors to cover the selection state. For parameter simplification and down-the-road refactoring quality of life, this would benefit from having the colors wrapped in a new data class, such asPocketCategoryColors
. This way, a single parameter can be passed around rather than a growing list of colors as the business logic evolves.The default/fallback colors should be be inlined with the data class and the fallbacks when the passed-in colors are null.
Any nullability handling should be handled with a secondary constructor.
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: