No Composable if subtitle is null
This commit is contained in:
parent
cf057310b4
commit
ef4cf42b71
1 changed files with 2 additions and 2 deletions
|
|
@ -59,8 +59,8 @@ fun PreferenceSwitch(
|
|||
text = title,
|
||||
)
|
||||
},
|
||||
supportingContent = {
|
||||
if (subtitle != null) {
|
||||
supportingContent = subtitle?.let {
|
||||
{
|
||||
Text(
|
||||
style = ElementTheme.typography.fontBodyMdRegular,
|
||||
text = subtitle,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue