mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-07-31 00:29:22 +00:00
fix: addon description as optional instead of required
This commit is contained in:
parent
f9af2201e9
commit
baf8ea2ec0
2 changed files with 10 additions and 7 deletions
|
|
@ -25,7 +25,7 @@ internal object AddonManifestParser {
|
|||
return AddonManifest(
|
||||
id = root.requiredString("id"),
|
||||
name = root.requiredString("name"),
|
||||
description = root.requiredString("description"),
|
||||
description = root.optionalString("description").orEmpty(),
|
||||
version = root.requiredString("version"),
|
||||
logoUrl = root.optionalString("logo")?.resolveAgainstManifest(manifestUrl),
|
||||
resources = root.resources(defaultTypes, defaultPrefixes),
|
||||
|
|
|
|||
|
|
@ -408,13 +408,16 @@ private fun InstalledAddonCard(
|
|||
|
||||
manifest != null -> {
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
Text(
|
||||
text = manifest.description,
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
)
|
||||
manifest.description.takeIf { it.isNotBlank() }?.let { description ->
|
||||
Text(
|
||||
text = description,
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
)
|
||||
|
||||
Spacer(modifier = Modifier.height(14.dp))
|
||||
}
|
||||
|
||||
Spacer(modifier = Modifier.height(14.dp))
|
||||
Text(
|
||||
text = manifestSummary(manifest),
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
|
|
|
|||
Loading…
Reference in a new issue