mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
No Composable if subtitle is null
This commit is contained in:
+2
-2
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user