Skip to content
Commit f78e72d8 authored by ryanlwlin's avatar ryanlwlin Committed by Ryan Lin
Browse files

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
parent 898602ef
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment