martin-stone / hsv-alpha-color-picker-android

A color picker and a color preference for use in Android applications.
Apache License 2.0
290 stars 60 forks source link

After hex value is deleted, color changes to transparent even though colorpicker_showAlpha is set to false #43

Closed clearpath closed 6 years ago

clearpath commented 6 years ago

When colorpicker_showAlpha is set to false and colorpicker_showHex is set to true deleting of text results in transparent color.

Workaround would be to apply the following color

int color = shouldTrimAlphaDigits() ? 0xff000000 : 0;

in catch block of HexEdit.MultiObserver.onTextChanged instead of zero.

martin-stone commented 6 years ago

Thanks for reporting that. Will fix for the next release.

martin-stone commented 6 years ago

Fixed in version 2.3.1.