mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
8217d3fc22
The previous AccessibilityDelegateCompat approach had two fatal flaws: 1. The delegate was only set when isTouchExplorationEnabled() returned true AT BIND TIME — a timing bug that caused TalkBack to see no actions if the view was bound before TalkBack fully initialised. 2. Even when set, the delegate/custom-action-ID approach did not reliably produce an "Actions" submenu in the TalkBack local context menu on Android 14+. Replace the entire mechanism with ViewCompat.addAccessibilityAction(), the modern API (androidx.core 1.5.0+) that TalkBack always surfaces under "Actions". Actions are registered unconditionally at bind time; stale actions from recycled views are removed via ViewCompat.removeAccessibilityAction() before re-registration. Delete the now-unused LinkAccessibilityDelegate class. Agent-Logs-Url: https://github.com/ArcaneChat/android/sessions/95854760-c8e5-43d8-b7b4-55879a7c5dea Co-authored-by: adbenitez <24558636+adbenitez@users.noreply.github.com>