Always send TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED.
This logic was borrowed from ExploreByTouchHelper, but apparently it's wrong, because TalkBack sends ACTION_ACCESSIBILITY_FOCUS on a new view id and then ACTION_CLEAR_ACCESSIBILITY_FOCUS on the old view id, and since we didn't think the old view had accessibility focus, we never responded with a TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED event, so the framework would sometimes not update its cache, and TalkBack could think the old view still had accessibility focus. BUG=458343 Review URL: https://codereview.chromium.org/916213003 Cr-Commit-Position: refs/heads/master@{#316238}
Showing
Please register or sign in to comment