You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If not setting colorListener to ColorPickerView, than the alpha and brightness sliders do not get updated.
This is the cause:
public void fireColorListener(@ColorInt int color, final boolean fromUser) {
if (this.colorListener !=null) {// <===== the bugthis.selectedColor = color;
if (getAlphaSlideBar() !=null) {
getAlphaSlideBar().notifyColor(); // <==== update of alpha sliderthis.selectedColor = getAlphaSlideBar().assembleColor();
}
if (getBrightnessSlider() !=null) {
getBrightnessSlider().notifyColor(); // <===== update of brightness sliderthis.selectedColor = getBrightnessSlider().assembleColor();
}
The workaround is simple, just set a blank listener. But this issue is more serious than that, because it is hard to realize that this is the problem. Took me hours of debugging.
The text was updated successfully, but these errors were encountered:
If not setting colorListener to ColorPickerView, than the alpha and brightness sliders do not get updated.
This is the cause:
The workaround is simple, just set a blank listener. But this issue is more serious than that, because it is hard to realize that this is the problem. Took me hours of debugging.
The text was updated successfully, but these errors were encountered: