Fix launcher icon click handler not updating
This commit is contained in:
parent
1536cb7365
commit
694b0e1382
@ -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() },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user