Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Jetpack Compose version: Compose bom 2025.01.01
Material Library Version (M2, M3 or Both?): M3
Material Compose component used: TimePicker
Android Studio Build: Build #AI-243.21565.193.2431.12735582
Kotlin version: 2.1.0
Steps to Reproduce or Code Sample to Reproduce:
When using the TimePicker with talkback enabled, I cannot select the correct time. The clock times announce correctly but when I double tap to toggle, some numbers select the wrong time while others select nothing.
Suggested Fix:
In the code , currently the code uses an on–globally–positioned modifier to obtain
ClockText
parentCenter
:then the onclick calls:
But When talkback is enabled the
parentCenter
computed from the parentCoordinates is not accurate and throws off subsequent calculations inonTap
. Explicitly using the known size of the dial container to compute its center should fix this, because you ensure that the angle is always calculated relative to the actual center of the clock dial even with talkback enabled. Something like: