mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
supportingContent should be null if there is nothing to display.
This commit is contained in:
committed by
Benoit Marty
parent
6339bb6235
commit
79057678d7
+4
-2
@@ -61,14 +61,16 @@ fun PreferenceCheckbox(
|
|||||||
color = enabled.toEnabledColor(),
|
color = enabled.toEnabledColor(),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
supportingContent = {
|
supportingContent = if (supportingText != null) {
|
||||||
if (supportingText != null) {
|
{
|
||||||
Text(
|
Text(
|
||||||
style = ElementTheme.typography.fontBodyMdRegular,
|
style = ElementTheme.typography.fontBodyMdRegular,
|
||||||
text = supportingText,
|
text = supportingText,
|
||||||
color = enabled.toSecondaryEnabledColor(),
|
color = enabled.toSecondaryEnabledColor(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
null
|
||||||
},
|
},
|
||||||
trailingContent = ListItemContent.Checkbox(
|
trailingContent = ListItemContent.Checkbox(
|
||||||
checked = isChecked,
|
checked = isChecked,
|
||||||
|
|||||||
Reference in New Issue
Block a user