Skip to content

Commit

Permalink
Merge pull request #57 from sderr/fix_color_reset
Browse files Browse the repository at this point in the history
quickfix for occasional color reset to white on recomposition
  • Loading branch information
skydoves authored May 8, 2024
2 parents d5c4d45 + 73e0f79 commit 7112a71
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ public class ColorPickerController {
}
paletteBitmap = resized.asImageBitmap()
copiedBitmap.recycle()
selectCenter(fromUser = false)
if (isHsvColorPalette) {
selectByColor(_selectedColor.value, false)
} else {
selectCenter(fromUser = false)
}
reviseTick.intValue++
}

Expand Down

0 comments on commit 7112a71

Please sign in to comment.