diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewMediaView.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewMediaView.kt index 499359526..c4dc90027 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewMediaView.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewMediaView.kt @@ -148,7 +148,7 @@ fun NewMediaView( ) { Icon( painter = painterResource(R.drawable.relays), - contentDescription = null, + contentDescription = stringRes(id = R.string.relay_list_selector), modifier = Modifier.height(25.dp), tint = MaterialTheme.colorScheme.onBackground, ) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/Icons.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/Icons.kt index 73e3acfbd..9bbd04720 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/Icons.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/Icons.kt @@ -31,7 +31,7 @@ import androidx.compose.material.icons.automirrored.filled.ArrowBack import androidx.compose.material.icons.automirrored.filled.OpenInNew import androidx.compose.material.icons.automirrored.filled.VolumeOff import androidx.compose.material.icons.automirrored.filled.VolumeUp -import androidx.compose.material.icons.filled.AddReaction +import androidx.compose.material.icons.automirrored.outlined.ArrowForwardIos import androidx.compose.material.icons.filled.Bolt import androidx.compose.material.icons.filled.Cancel import androidx.compose.material.icons.filled.Clear @@ -46,7 +46,6 @@ import androidx.compose.material.icons.filled.PushPin import androidx.compose.material.icons.filled.Report import androidx.compose.material.icons.filled.Share import androidx.compose.material.icons.outlined.AddReaction -import androidx.compose.material.icons.outlined.ArrowForwardIos import androidx.compose.material.icons.outlined.Bolt import androidx.compose.material.icons.outlined.PlayCircle import androidx.compose.material3.Icon @@ -469,7 +468,7 @@ fun PinIcon( ) { Icon( imageVector = Icons.Default.PushPin, - contentDescription = null, + contentDescription = stringRes(id = R.string.accessibility_pushpin), modifier = modifier, tint = tint, ) @@ -620,7 +619,7 @@ fun ZapSplitPreview() { tint = BitcoinOrange, ) Icon( - imageVector = Icons.Outlined.ArrowForwardIos, + imageVector = Icons.AutoMirrored.Outlined.ArrowForwardIos, contentDescription = stringRes(id = R.string.zaps), modifier = Modifier diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/AppDefinition.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/AppDefinition.kt index f5f91715f..ec7a3a63c 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/AppDefinition.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/AppDefinition.kt @@ -147,10 +147,10 @@ fun RenderAppDefinition( var zoomImageDialogOpen by remember { mutableStateOf(false) } Box(Modifier.size(100.dp)) { - it.picture?.let { + it.picture?.let { picture -> AsyncImage( - model = it, - contentDescription = null, + model = picture, + contentDescription = it.name, contentScale = ContentScale.FillWidth, modifier = Modifier @@ -163,7 +163,7 @@ fun RenderAppDefinition( .background(MaterialTheme.colorScheme.background) .combinedClickable( onClick = { zoomImageDialogOpen = true }, - onLongClick = { clipboardManager.setText(AnnotatedString(it)) }, + onLongClick = { clipboardManager.setText(AnnotatedString(picture)) }, ), ) } diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/Emoji.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/Emoji.kt index 30034f7cf..3dcc749af 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/Emoji.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/Emoji.kt @@ -137,7 +137,7 @@ public fun RenderEmojiPack( IconButton(onClick = { onClick(emoji) }, modifier = Size35Modifier) { AsyncImage( model = emoji.url, - contentDescription = null, + contentDescription = emoji.code, modifier = Size35Modifier, ) } @@ -148,7 +148,7 @@ public fun RenderEmojiPack( ) { AsyncImage( model = emoji.url, - contentDescription = null, + contentDescription = emoji.code, modifier = Size35Modifier, ) } diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/profile/ProfileScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/profile/ProfileScreen.kt index 0712b337f..4c2b4c252 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/profile/ProfileScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/profile/ProfileScreen.kt @@ -1300,13 +1300,17 @@ private fun WatchApp( val appState by baseApp.live().metadata.observeAsState() var appLogo by remember(baseApp) { mutableStateOf(null) } + var appName by remember(baseApp) { mutableStateOf(null) } LaunchedEffect(key1 = appState) { withContext(Dispatchers.Default) { - val newAppLogo = - (appState?.note?.event as? AppDefinitionEvent)?.appMetaData()?.picture?.ifBlank { null } - if (newAppLogo != appLogo) { - appLogo = newAppLogo + (appState?.note?.event as? AppDefinitionEvent)?.appMetaData()?.let { metaData -> + metaData.picture?.ifBlank { null }?.let { newLogo -> + if (newLogo != appLogo) appLogo = newLogo + } + metaData.name?.ifBlank { null }?.let { newName -> + if (newName != appName) appName = newName + } } } } @@ -1321,7 +1325,7 @@ private fun WatchApp( ) { AsyncImage( model = appLogo, - contentDescription = null, + contentDescription = appName, modifier = remember { Modifier diff --git a/amethyst/src/main/res/values-cs/strings.xml b/amethyst/src/main/res/values-cs/strings.xml index f6ec8d37b..f61bdbad8 100644 --- a/amethyst/src/main/res/values-cs/strings.xml +++ b/amethyst/src/main/res/values-cs/strings.xml @@ -834,6 +834,7 @@ Přehrát uživatelské jméno jako audio Skenovat QR kód Přejít na poskytovatele peněženky třetí strany Alby + Připínáček Není možné odpovědět na koncept Není možné citovat koncept Není možné reagovat na koncept diff --git a/amethyst/src/main/res/values-de/strings.xml b/amethyst/src/main/res/values-de/strings.xml index aaff2fcb7..3ac66502a 100644 --- a/amethyst/src/main/res/values-de/strings.xml +++ b/amethyst/src/main/res/values-de/strings.xml @@ -839,6 +839,7 @@ anz der Bedingungen ist erforderlich Benutzernamen als Audio abspielen QR-Code scannen Navigieren Sie zum Drittanbieter-Wallet-Anbieter Alby + Reißzwecke Es ist nicht möglich, auf einen Entwurf zu antworten Es ist nicht möglich, einen Entwurf zu zitieren Es ist nicht möglich, auf einen Entwurf zu reagieren diff --git a/amethyst/src/main/res/values-pt-rBR/strings.xml b/amethyst/src/main/res/values-pt-rBR/strings.xml index da514a9e8..af7559137 100644 --- a/amethyst/src/main/res/values-pt-rBR/strings.xml +++ b/amethyst/src/main/res/values-pt-rBR/strings.xml @@ -834,6 +834,7 @@ Reproduzir nome de usuário como áudio Escanear código QR Navegar para o provedor de carteira de terceiros Alby + Piones Não é possível responder uma nota em rascunho Não é possível citar uma nota em rascunho Não é possível reagir uma nota em rascunho diff --git a/amethyst/src/main/res/values-sv-rSE/strings.xml b/amethyst/src/main/res/values-sv-rSE/strings.xml index 7cb8ff863..e908b2c16 100644 --- a/amethyst/src/main/res/values-sv-rSE/strings.xml +++ b/amethyst/src/main/res/values-sv-rSE/strings.xml @@ -833,6 +833,7 @@ Spela upp användarnamn som ljud Skanna QR-kod Navigera till tredjeparts plånboksleverantören Alby + Häftstift Det går inte att svara på ett utkast Det går inte att citera ett utkast Det går inte att reagera på ett utkast diff --git a/amethyst/src/main/res/values/strings.xml b/amethyst/src/main/res/values/strings.xml index 938353738..139e40195 100644 --- a/amethyst/src/main/res/values/strings.xml +++ b/amethyst/src/main/res/values/strings.xml @@ -1005,6 +1005,7 @@ Sealed message on. Click to turn off sealed message Send Play username as audio + Pushpin Scan QR code Navigate to the third-party wallet provider Alby It\'s not possible to reply a draft note