diff options
| author | 2024-10-15 16:45:42 +0800 | |
|---|---|---|
| committer | 2024-10-18 01:31:05 +0000 | |
| commit | 92ff7c75e4fed791a51202f95541ab62791136fe (patch) | |
| tree | 6c6bf6490840e280282e847354220058a11fa7ef /ravenwood/scripts/extract-last-soong-commands.py | |
| parent | 8ac5a154991dfb870ec3de48c6fe53cd99e3fe31 (diff) | |
Reset draw state after notifying invisible to activity window
This moves the concept of I69f893a19d6426710bb0b8b0e18f3d2664cb6412
to a more suitable place. Instead of resetting draw state when the
app becomes visible, it is more general when setting app window to
be invisible.
There are 2 cases that could benefit from this:
1. The computation ActivityRecord#updateReportedVisibilityLocked
depends on w.isDrawn(). So ActivityRecord#isReportedDrawn() won't
get stale draw state.
2. ActivityRecord#addStartingWindow checks w.isDrawn() to skip
adding starting window. So it can avoid missing starting window
when launching app again in a short time, e.g. return to home
and click the same app immediately.
Bug: 373023636
Test: atest ActivityRecordTests#testSetVisibility_visibleToInvisible
Flag: com.android.window.flags.reset_draw_state_on_client_invisible
Change-Id: I91ffbd5ce4d014feb667383fda404df23759be89
Diffstat (limited to 'ravenwood/scripts/extract-last-soong-commands.py')
0 files changed, 0 insertions, 0 deletions