summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorryanlwlin <ryanlwlin@google.com>2020-10-27 14:04:33 +0800
committerRyan Lin <ryanlwlin@google.com>2020-11-17 12:11:16 +0000
commitf78e72d8fcfc0c7699ecd1a1d0a1231eb65a77b0 (patch)
treedf8b83edf91153c31cd15b0aa21ce9902cc2a0f5 /tools/aapt2/java/JavaClassGenerator.cpp
parent898602efc6ad2cb7b17aaa2fd2600ac1cbfaf6ce (diff)
Fix AccessibilityService#getWindows time out
In our design, we computes the windows for each display. Ideally the window list is initialized when the window observer is created.However, if the top focus window is null, the window list won't beupdated unless there is the windows change on that display. In general case, most of non-default displays don't have windows, so their window list won't be initialized. It affects that the callee needs to wait 5 seconds for time out mechanism. To fix it, we collects the window observers that don't receive the callback when it is constructed. Then sending the callback to them when the window foucs is available next time. Bug: 169542227 Test: manually check if windows reports correctly. Change-Id: I1a3dc780de5873062b220bd1588c855138aa3657
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions