Address compose and xmlutil deprecations (#3507)

This commit is contained in:
AntsyLich
2026-07-03 01:15:42 +06:00
committed by GitHub
parent f6632940fa
commit dfed97edc8
5 changed files with 51 additions and 52 deletions
@@ -201,16 +201,16 @@ private fun MigrationSheetSwitchItem(
onClick: () -> Unit,
) {
ListItem(
headlineContent = { Text(text = title) },
supportingContent = subtitle?.let { { Text(text = subtitle) } },
modifier = Modifier.clickable(onClick = onClick),
trailingContent = {
Switch(
checked = checked,
onCheckedChange = null,
)
},
supportingContent = subtitle?.let { { Text(text = subtitle) } },
colors = ListItemDefaults.colors(containerColor = Color.Transparent),
modifier = Modifier.clickable(onClick = onClick),
content = { Text(text = title) },
)
}
@@ -231,13 +231,12 @@ private fun MigrationSheetWarningItem(
tint = MaterialTheme.colorScheme.active,
)
},
headlineContent = {
Text(
text = text,
color = MaterialTheme.colorScheme.error,
modifier = Modifier,
)
},
colors = ListItemDefaults.colors(containerColor = Color.Transparent),
)
) {
Text(
text = text,
color = MaterialTheme.colorScheme.error,
modifier = Modifier,
)
}
}