Skip to content

Commit 6d2ac18

Browse files
Fix Talkback announcing "greater than arrow"
1 parent 056f346 commit 6d2ac18

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/main/java/protect/card_locker/compose/AboutActivity.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import androidx.compose.runtime.remember
1717
import androidx.compose.ui.Alignment
1818
import androidx.compose.ui.Modifier
1919
import androidx.compose.ui.res.stringResource
20+
import androidx.compose.ui.semantics.hideFromAccessibility
21+
import androidx.compose.ui.semantics.semantics
2022
import androidx.compose.ui.text.AnnotatedString
2123
import androidx.compose.ui.unit.dp
2224
import protect.card_locker.OpenWebLinkHandler
@@ -44,6 +46,7 @@ fun CatimaAboutSection(
4446
OpenWebLinkHandler().openBrowser(activity, onClickUrl)
4547
}
4648
}
49+
.semantics(mergeDescendants = true) {}
4750
) {
4851
Column(modifier = Modifier.weight(1F)) {
4952
Text(
@@ -52,7 +55,7 @@ fun CatimaAboutSection(
5255
)
5356
Text(text = message)
5457
}
55-
Text(modifier = Modifier.align(Alignment.CenterVertically),
58+
Text(modifier = Modifier.align(Alignment.CenterVertically).semantics() { hideFromAccessibility() },
5659
text = ">",
5760
style = MaterialTheme.typography.bodyMedium
5861
)

0 commit comments

Comments
 (0)