summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Hiroki Sato <hirokisato@google.com> 2022-11-24 16:50:03 +0900
committer Hiroki Sato <hirokisato@google.com> 2022-11-25 10:41:02 +0900
commitfeb364538771a47639369f8add844288669d9cc0 (patch)
tree84c8cf085782777dcf084119d9b450c36f9d5d62 /libs/androidfw/StringPool.cpp
parent23a3b64bdabd64151dd2a9def8c196963126d357 (diff)
Ensure that a11y window state change event is sent on focus change
Currently when the focus changes, an accessibility event of TYPE_WINDOW_STATE_CHANGED is dispatched from ViewRootImpl. This logic is implemented in performTraversals(), but the logic depends on the value mAttachInfo.mHasWindowFocus, which is updated from an input event handleWindowFocusChanged(). There's no guarantee that always performTraversals() is called after handleWindowFocusChanged(). As a result, sometimes accessibility event is not dispatched after focus change. This change fixes the issue by explicitly dispatching the event in handleWindowFocusChanged() if needed. Bug: 260310672 Bug: 214318644 Test: Accessibility CTS Change-Id: I95cf3a7a9c7951f8b3862713ed7339688a8427d5
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions