mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-02 08:58:23 +02:00
Add content description to recommended apps icons
This commit is contained in:
parent
6faab55a55
commit
54d0ec806d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user