Talkback always reads application name when opening Jetpack Compose Dialog
Asked Answered
S

1

6

When opening a Dialog in Jetpack Compose, Talkback will always read the application label, before reading the Dialog title.

I have already tried setting the activity lable in the manifest to something different or just a space. While doing that, I noticed that talkback completely ignores the activity label and always goes for the outer application label.

Is there a way to stop Talkback from reading the application label entirely? And can I control what is read instead when opening a Dialog?

Solberg answered 12/12, 2022 at 22:31 Comment(0)
F
1

For anyone else who stumbles across this. It looks like the answer is to set the paneTitle in the semantics.

For example:

Dialog(
  onDismissRequest = onDismissRequest,
  properties = properties,
) {
  Column(
    Modifier.semantics {
      paneTitle = "my title for the screen reader"
    }
  ) {
    // content here
  }
}
Fideicommissum answered 8/8 at 17:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.