mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:05:28 +00:00
Fix detekt false positive
This commit is contained in:
committed by
Benoit Marty
parent
d1cf1aa09f
commit
c8c8971889
+6
-6
@@ -120,32 +120,32 @@ fun ListItem(
|
||||
content()
|
||||
}
|
||||
}
|
||||
val decoratedSupportingContent: (@Composable () -> Unit)? = supportingContent?.let { content ->
|
||||
val decoratedSupportingContent: (@Composable () -> Unit)? = supportingContent?.let { safeContent ->
|
||||
{
|
||||
CompositionLocalProvider(
|
||||
LocalTextStyle provides ElementTheme.typography.fontBodyMdRegular,
|
||||
LocalContentColor provides supportingColor,
|
||||
) {
|
||||
content()
|
||||
safeContent()
|
||||
}
|
||||
}
|
||||
}
|
||||
val decoratedLeadingContent: (@Composable () -> Unit)? = leadingContent?.let { content ->
|
||||
val decoratedLeadingContent: (@Composable () -> Unit)? = leadingContent?.let { safeContent ->
|
||||
{
|
||||
CompositionLocalProvider(
|
||||
LocalContentColor provides leadingContentColor,
|
||||
) {
|
||||
content.View(isItemEnabled = enabled)
|
||||
safeContent.View(isItemEnabled = enabled)
|
||||
}
|
||||
}
|
||||
}
|
||||
val decoratedTrailingContent: (@Composable () -> Unit)? = trailingContent?.let { content ->
|
||||
val decoratedTrailingContent: (@Composable () -> Unit)? = trailingContent?.let { safeContent ->
|
||||
{
|
||||
CompositionLocalProvider(
|
||||
LocalTextStyle provides ElementTheme.typography.fontBodyMdRegular,
|
||||
LocalContentColor provides trailingContentColor,
|
||||
) {
|
||||
content.View(isItemEnabled = enabled)
|
||||
safeContent.View(isItemEnabled = enabled)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user