commit | 40a4ec29317c07ca6cdd8c05c69c862ecfe2aa43 | [log] [tgz] |
---|---|---|
author | Chun-Ku Lin <[email protected]> | Sat Aug 31 01:33:55 2024 +0000 |
committer | Chun-Ku Lin <[email protected]> | Sat Aug 31 01:51:49 2024 +0000 |
tree | 19affa5b60fe075bb90d772d41fdf4f14ed6a3c6 | |
parent | a0b24fab8afd4078828027d7374b58741db842f3 [diff] |
Use uiContext when trying to get WindowManager or UI related work There is a silent error log when trying to getWindowManager with a11yService as the context. Creating a WindowContext before getting the WindowManager clears out the error log Bug: 268743197 Test: manually. Turn on/off a11y menu, rotate the screen, clicking on the menu item all works Test: atest AccessibilityMenuServiceTests Flag: EXEMPT low risk bugfix Change-Id: I0f5f5df85f766f8dc14bd1bc1a534a1eac245faf