From d9e8be86c7b9ec442351a729390ae58edcf800bb Mon Sep 17 00:00:00 2001 From: Tangem Date: Mon, 8 Aug 2022 17:05:47 +0400 Subject: [PATCH] Updated on 2026-08-14 --- .../tap/features/details/ui/common/TangemSwitch.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/tangem/tap/features/details/ui/common/TangemSwitch.kt b/app/src/main/java/com/tangem/tap/features/details/ui/common/TangemSwitch.kt index 9eda9be886..bf5268bf6f 100644 --- a/app/src/main/java/com/tangem/tap/features/details/ui/common/TangemSwitch.kt +++ b/app/src/main/java/com/tangem/tap/features/details/ui/common/TangemSwitch.kt @@ -59,10 +59,9 @@ fun TangemSwitch( onCheckedChange(!checked) } .indication( - interactionSource = MutableInteractionSource(), + interactionSource = interactionSource, indication = rememberRipple( - bounded = true, - radius = 100.dp, + bounded = false, color = Color.Transparent, ), ), @@ -71,7 +70,7 @@ fun TangemSwitch( modifier = modifier .width(size) .height(size / 2) - .indication(MutableInteractionSource(), null) + .indication(interactionSource, null) .background(color = color, shape = RoundedCornerShape(100)), contentAlignment = Alignment.CenterStart, ) { @@ -91,8 +90,7 @@ fun TangemSwitch( .offset(x = xOffset, y = 0.dp) .padding(3.dp) .background(color = Color.White, shape = RoundedCornerShape(100)), - ) { - } + ) } } } \ No newline at end of file