Skip to content

Commit

Permalink
ANDROID-13687 Update. Interrupt a11y announcement safely
Browse files Browse the repository at this point in the history
  • Loading branch information
haynlo committed Jun 13, 2024
1 parent d66962f commit 71e2db9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ open class SnackbarBuilder(view: View?, text: String) {
private fun interruptPreviousAccessibilityAnnouncement(snackbar: Snackbar) {
snackbar.addCallback(object : BaseCallback<Snackbar>() {
override fun onShown(snackbar: Snackbar) {
accessibilityManager.interrupt()
if (accessibilityManager.isEnabled) accessibilityManager.interrupt()
}
})
}
Expand Down

0 comments on commit 71e2db9

Please sign in to comment.