From 1528ab63d3ac6d24f66185ec4e5cecec24504fa6 Mon Sep 17 00:00:00 2001 From: Gibran Chevalley Date: Thu, 17 Oct 2024 12:47:30 +0200 Subject: [PATCH] wip Disable button --- .../java/com/infomaniak/swisstransfer/ui/components/Buttons.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/Buttons.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/Buttons.kt index f835a4ea1..9c6148e31 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/Buttons.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/Buttons.kt @@ -110,7 +110,7 @@ private fun CoreButton( onClick: () -> Unit, imageVector: ImageVector?, ) { - val isEnabled by remember { derivedStateOf { enabled() || showIndeterminateProgress() } } + val isEnabled by remember { derivedStateOf { enabled() && !showIndeterminateProgress() && progress == null } } val buttonColors = style.buttonColors() Button(