diff options
| author | 2024-04-16 03:22:52 +0000 | |
|---|---|---|
| committer | 2024-04-17 21:52:05 +0000 | |
| commit | 0f1bf53ca660813d4939c4fc397fc0ffe29d2945 (patch) | |
| tree | 06ef9a15ffe309b88d952530a16f8d9a9de184a5 /libs/androidfw/ZipFileRO.cpp | |
| parent | 829ab8b52c79385c1311e39a7e9d9adb9cf7132c (diff) | |
Do not assume display is available when a task launches
The resize veil creates a SCVH as soon as a task launches to draw the
icon drawable early and once to be ready for any resize operation.
However, it cannot be assumed that the DisplayController will return a
non-null display if the task and display were both launched roughly at
the same time.
To avoid a NPE, this change checks whether the display is available and
if not attaches a listener to do the resize veil set up when it actually
appears.
Bug: 333442423
Test: atest WMShellUnitTests:ResizeVeil; resize veil works as usual;
atest CtsInputTestCases doesn't cause a crash
Change-Id: Id8efb265e1910144f92fee1144aa07afb9327056
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions