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).
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 intoOnChooseColorListener
'sonChooseColor
function will be 0 (uninitialised int, ascolorSelected
is not initialised).