Fix launcher icon click handler not updating

This commit is contained in:
MM20 2022-09-03 12:51:33 +02:00
parent 1536cb7365
commit 694b0e1382
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -93,7 +93,7 @@ fun ShapedLauncherIcon(
clip = currentIcon?.backgroundLayer !is TransparentLayer clip = currentIcon?.backgroundLayer !is TransparentLayer
this.shape = shape this.shape = shape
} }
.pointerInput(null) { .pointerInput(onClick, onLongClick) {
detectTapGestures( detectTapGestures(
onLongPress = { onLongClick?.invoke() }, onLongPress = { onLongClick?.invoke() },
onTap = { onClick?.invoke() }, onTap = { onClick?.invoke() },
@ -124,7 +124,7 @@ fun ShapedLauncherIcon(
modifier = Modifier modifier = Modifier
.size(size * 0.33f) .size(size * 0.33f)
.align(Alignment.BottomEnd) .align(Alignment.BottomEnd)
.pointerInput(null) { .pointerInput(onClick, onLongClick) {
detectTapGestures( detectTapGestures(
onLongPress = { onLongClick?.invoke() }, onLongPress = { onLongClick?.invoke() },
onTap = { onClick?.invoke() }, onTap = { onClick?.invoke() },