Skip to content

Commit

Permalink
rounding error quick fix
Browse files Browse the repository at this point in the history
resetting mCenterNewColor to original value in setColor
  • Loading branch information
mg6maciej committed Mar 10, 2014
1 parent a4ad63a commit 6f8dd87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/com/larswerkman/holocolorpicker/ColorPicker.java
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,11 @@ public void setColor(int color) {
Color.colorToHSV(color, mHSV);
mValueBar.setValue(mHSV[2]);
}
mCenterNewColor = color;
if (onColorChangedListener != null && color != oldChangedListenerColor ) {
onColorChangedListener.onColorChanged(color);
oldChangedListenerColor = color;
}

invalidate();
}
Expand Down

0 comments on commit 6f8dd87

Please sign in to comment.