From ee6ce841168cc60c47efd717926eeb2873fe4e01 Mon Sep 17 00:00:00 2001 From: andrew Date: Fri, 1 Sep 2023 08:31:08 +0930 Subject: [PATCH] Fix TitledRadioButton ripple downstate --- .../conversation/expiration/ExpirationSettingsActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/expiration/ExpirationSettingsActivity.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/expiration/ExpirationSettingsActivity.kt index f0b5c0b9f0..06f6ad6816 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/expiration/ExpirationSettingsActivity.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/expiration/ExpirationSettingsActivity.kt @@ -5,6 +5,7 @@ import android.widget.Toast import androidx.activity.viewModels import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.ScrollState +import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column @@ -233,6 +234,7 @@ fun OptionsCard(card: CardModel) { @Composable fun TitledRadioButton(option: OptionModel) { Row(modifier = Modifier + .clickable { option.onClick() } .heightIn(min = 60.dp) .padding(horizontal = 34.dp)) { Column(modifier = Modifier @@ -255,8 +257,8 @@ fun TitledRadioButton(option: OptionModel) { } RadioButton( selected = option.selected, + onClick = null, enabled = option.enabled, - onClick = option.onClick, modifier = Modifier .height(26.dp) .align(Alignment.CenterVertically)