mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +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(),
|
||||
)
|
||||
},
|
||||
supportingContent = {
|
||||
if (supportingText != null) {
|
||||
supportingContent = if (supportingText != null) {
|
||||
{
|
||||
Text(
|
||||
style = ElementTheme.typography.fontBodyMdRegular,
|
||||
text = supportingText,
|
||||
color = enabled.toSecondaryEnabledColor(),
|
||||
)
|
||||
}
|
||||
} else {
|
||||
null
|
||||
},
|
||||
trailingContent = ListItemContent.Checkbox(
|
||||
checked = isChecked,
|
||||
|
||||
Reference in New Issue
Block a user