Skip to content

Commit 8cca1fa

Browse files
committed
code reduced.
1 parent 4970531 commit 8cca1fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/main/java/io/syslogic/colorpicker/compose/ColorPickerComponent.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ fun ColorPickerComponent(
405405
.padding(all = rowPadding)
406406
.pointerInput(Unit) {
407407
detectTapGestures(
408-
onPress = { _: Offset ->
408+
onPress = {
409409
/* reset to the previous color */
410410
onButtonClick(context, OldColor, initialColor.hashCode(), listener)
411411
currentColor = initialColor.hashCode()
@@ -443,7 +443,7 @@ fun ColorPickerComponent(
443443
.padding(all = rowPadding)
444444
.pointerInput(Unit) {
445445
detectTapGestures(
446-
onPress = { _: Offset ->
446+
onPress = {
447447
onButtonClick(
448448
context,
449449
NewColor,

0 commit comments

Comments
 (0)