From 6faab55a55e4b96b59f7b0991aa533a06dbf1a2b Mon Sep 17 00:00:00 2001 From: David Kaspar Date: Sat, 7 Dec 2024 14:35:26 +0100 Subject: [PATCH] Add content description to pushpin icon (just in case) --- .../main/java/com/vitorpamplona/amethyst/ui/note/Icons.kt | 7 +++---- amethyst/src/main/res/values/strings.xml | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) 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/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