diff options
| author | 2024-03-12 17:04:59 +0000 | |
|---|---|---|
| committer | 2024-05-08 19:45:52 +0000 | |
| commit | 0322e156a743a4dea559bc9a8d40ffead474f8d7 (patch) | |
| tree | 78ce1051ac7653d168f162d3d62c93614bd0758c /libs/androidfw/StringPool.cpp | |
| parent | a922ac82078c04d3f606bd16e3fb6aa02f657f9b (diff) | |
Fix Race in ScreenshotController
TakeScreenshotExecutor was creating the ScreenshotController by passing the displayId. However, if the display was disconnected before ScreenshotController was fully initialized, it ended up crashing (exactly when creating the display context).
Now, ScreenshotController is not created unless we have a not-null display in TakescreenshotExecutor.
Test: TakeScreenshotExecutorTest
Flag: None
Fixes: 329147174
Merged-In: I0c7c9ec4e7d3dfc8896bd325bd250d372a6c0891
Change-Id: Ib5dbf463a89342f1f61e0d84f4031d7c72f2b87d
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions