Development to master merge.

It's better to move this method inside SelectedColor. Commonly not only one activity may have need to get enum for specified int.