Skip to content

Error color in colorEnvelope.getHexCode() #123

Description

@vallemar

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions