https://kotlinlang.org logo
j

jannis

10/06/2022, 1:51 PM
When I replace a Text in a TextField in Compose Accessibility Services (Talkback) announce the change. However it's a bit weird. Talkback reads the new text twice and the second time with punctuation. Is this intended?
I use this code:
Copy code
var text by remember { mutableStateOf("") }
TextField(
    value = text,
    onValueChange = { text = it }
)
Button(onClick = { text = "A different text." }) {
    Text("paste")
}
z

Zach Klippenstein (he/him) [MOD]

10/06/2022, 5:28 PM
Hm, when I run that code on my pixel 3 with android 12, talkback doesn’t even read the pasted text it just says “text” once
Can you file a bug? Definitely seems like something is off either way
j

jannis

10/06/2022, 7:15 PM
Yeah already did
It only reads it when you've entered another text before
21 Views