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
this.shape = shape
}
.pointerInput(null) {
.pointerInput(onClick, onLongClick) {
detectTapGestures(
onLongPress = { onLongClick?.invoke() },
onTap = { onClick?.invoke() },
@ -124,7 +124,7 @@ fun ShapedLauncherIcon(
modifier = Modifier
.size(size * 0.33f)
.align(Alignment.BottomEnd)
.pointerInput(null) {
.pointerInput(onClick, onLongClick) {
detectTapGestures(
onLongPress = { onLongClick?.invoke() },
onTap = { onClick?.invoke() },