Skip to content

Stop speech when touch focuses an item, with Stop speech when touching the screen off - #285

Merged
trypsynth merged 2 commits into
masterfrom
touch-speech-interrupt
Oct 26, 2026
Merged

trypsynth merged 2 commits into
masterfrom
touch-speech-interrupt

Conversation

@trypsynth

Copy link
Copy Markdown
Owner

Fixes #282

Problem

With Stop speech when touching the screen off, touching the screen and moving onto an item no longer stop speech, as intended. But the touched item's speech then only interrupts speech that new speech can interrupt. Notifications, toasts and other announcements are spoken with QUEUE_MODE_UNINTERRUPTIBLE_BY_NEW_SPEECH, and with the switch on, the gentle interrupt on touch is what cut them off. With the switch off they went on, and the touched item waited behind them, so exploring by touch seemed slow and gave no feedback.

Change

In FocusFeedbackMapper, with the switch off, the feedback that focuses an item by touch (TOUCH_UNFOCUSED_NODE and TOUCH_FOCUSED_NODE) now carries the same gentle interrupt that touching carries with the switch on. Speech goes on while the finger is down, and stops when touch focuses an item, as the setting's translator comment describes. With the switch on, nothing changes.

Testing

  • New FocusFeedbackMapperTouchTest checks which touch actions interrupt, with the switch on and off.
  • :talkback:testPhoneDebugUnitTest, :lintPhoneDebug and :lintWearDebug pass.
  • Not tried on a device yet: with the switch off, touch an item while a notification is being read.

The Wear material colors pointed at the system's dynamic colors, which only exist from Android 12,
and the watch's values-watch-v30 copy applied them on Wear OS 3 too, where the training list items
that use them could fail to load. The base colors are now close fixed colors, and values-v31 uses
the dynamic ones. Without the watch override, Android 12 and later watches still get the dynamic
colors, since a watch qualifier would outrank values-v31.
…g the screen off

With the switch off, touching no longer stopped speech, and focusing an item by touch only
interrupted speech that new speech can interrupt. Notifications, toasts and other uninterruptible
speech went on, and the touched item waited behind them, so exploring seemed slow and silent. Now
focusing an item by touch stops all speech, as touching did with the switch on.

Fixes #282
@trypsynth
trypsynth merged commit abaf24c into master Oct 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant