Add content description to recommended apps icons

This commit is contained in:
David Kaspar 2024-12-07 15:10:24 +01:00
parent 6faab55a55
commit 54d0ec806d

View File

@ -1300,6 +1300,7 @@ private fun WatchApp(
val appState by baseApp.live().metadata.observeAsState()
var appLogo by remember(baseApp) { mutableStateOf<String?>(null) }
var appName by remember(baseApp) { mutableStateOf<String?>(null) }
LaunchedEffect(key1 = appState) {
withContext(Dispatchers.Default) {
@ -1308,6 +1309,12 @@ private fun WatchApp(
if (newAppLogo != appLogo) {
appLogo = newAppLogo
}
val newAppName =
(appState?.note?.event as? AppDefinitionEvent)?.appMetaData()?.name?.ifBlank { null }
if (newAppName != appName) {
appName = newAppName
}
}
}
@ -1321,7 +1328,7 @@ private fun WatchApp(
) {
AsyncImage(
model = appLogo,
contentDescription = null,
contentDescription = appName,
modifier =
remember {
Modifier