Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error color in colorEnvelope.getHexCode() #123

Open
vallemar opened this issue Nov 1, 2023 · 0 comments
Open

Error color in colorEnvelope.getHexCode() #123

vallemar opened this issue Nov 1, 2023 · 0 comments

Comments

@vallemar
Copy link

vallemar commented Nov 1, 2023

Please complete the following information:

  • Library Version2.3.0
  • Affected Device(s) emulator

When I create a ColorPickerDialog and add a setPositiveButton the getHexCode() method of colorEnvelope returns another code.

Example:

colorEnvelope.getColor() -> -261120
colorEnvelope.getHexCode() -> FFFC0431
Integer.toHexString(colorEnvelope.getColor()).substring(2) -> fc0431

Integer.toHexString(colorEnvelope.getColor()).substring(2) I found it here and it seems to work fine https://stackoverflow.com/a/6544482/6015400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant