mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-18 05:57:44 +00:00
Fix TitledRadioButton ripple downstate
This commit is contained in:
parent
ef24fb0fd1
commit
ee6ce84116
@ -5,6 +5,7 @@ import android.widget.Toast
|
|||||||
import androidx.activity.viewModels
|
import androidx.activity.viewModels
|
||||||
import androidx.compose.foundation.BorderStroke
|
import androidx.compose.foundation.BorderStroke
|
||||||
import androidx.compose.foundation.ScrollState
|
import androidx.compose.foundation.ScrollState
|
||||||
|
import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
import androidx.compose.foundation.layout.Column
|
import androidx.compose.foundation.layout.Column
|
||||||
@ -233,6 +234,7 @@ fun OptionsCard(card: CardModel) {
|
|||||||
@Composable
|
@Composable
|
||||||
fun TitledRadioButton(option: OptionModel) {
|
fun TitledRadioButton(option: OptionModel) {
|
||||||
Row(modifier = Modifier
|
Row(modifier = Modifier
|
||||||
|
.clickable { option.onClick() }
|
||||||
.heightIn(min = 60.dp)
|
.heightIn(min = 60.dp)
|
||||||
.padding(horizontal = 34.dp)) {
|
.padding(horizontal = 34.dp)) {
|
||||||
Column(modifier = Modifier
|
Column(modifier = Modifier
|
||||||
@ -255,8 +257,8 @@ fun TitledRadioButton(option: OptionModel) {
|
|||||||
}
|
}
|
||||||
RadioButton(
|
RadioButton(
|
||||||
selected = option.selected,
|
selected = option.selected,
|
||||||
|
onClick = null,
|
||||||
enabled = option.enabled,
|
enabled = option.enabled,
|
||||||
onClick = option.onClick,
|
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.height(26.dp)
|
.height(26.dp)
|
||||||
.align(Alignment.CenterVertically)
|
.align(Alignment.CenterVertically)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user