kristiyanP / colorpicker

A simple color picker library for Android
Apache License 2.0
193 stars 43 forks source link

When setting default colour, also set selected colour. #33

Closed olliechick closed 4 years ago

olliechick commented 4 years ago

Currently, if a user opens a dialog with a default colour, then that colour will be ticked, but when they click OK (without changing the color), the color passed into OnChooseColorListener's onChooseColor function will be 0 (uninitialised int, as colorSelected is not initialised).