diff options
| author | 2024-12-13 14:43:56 +0100 | |
|---|---|---|
| committer | 2024-12-16 10:38:38 +0100 | |
| commit | 0bd1a9fe9645987a76b2b801a1aa73a59e3fb9b0 (patch) | |
| tree | 26e5c747d983b31d3f72de7e91170b6c7d35b54c /libs/androidfw/StringPool.cpp | |
| parent | 3b86d10b235ea0622bace880ded61231acaf1f72 (diff) | |
Allow dialogs to be created from the shade when on external displays
This introduces ShadeDialogContextRepository, responsible of creating a dialog context for the shade every time it moves to a separate display.
This is needed for several reasons:
- Just using the shade context would be wrong, as it is a TYPE_NOTIFICATION_SHADE window context that doesn't allow dialogs to be added
- We need to create the context before it is needed, in the background. This is expensive, and if we do it when needed on demand we might delay dialog creation on the main thread, generating jank.
This only uses the class in a couple of dialogs: more will be refactored in follow ups.
Bug: 362719719
Bug: 383294128
Test: ShadeDialogContextRepository
Flag: com.android.systemui.shade_window_goes_around
Change-Id: I48d5e17c5530523e37c7e1a31935ac5ee1867883
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions