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