diff options
| author | 2024-11-21 19:18:11 +0000 | |
|---|---|---|
| committer | 2024-11-25 14:35:39 +0000 | |
| commit | 011e1e693d6680cd0e8a534c7c4f90abc3bb951c (patch) | |
| tree | 38232f8c7d858964eb66131756e61b033a2f0ae3 /libs/input/PointerController.cpp | |
| parent | 0e0d8fda5948fa7823c68fd26ab48c447b07ffbb (diff) | |
Mark camera as closed before notifying listeners.
This was the behaviour when only one camera policy existed. When
`CameraStateMonitor` was extracted, listeners were notified first.
There is an issue if the config update on camera close is synchronous:
it is possible to read camera compat values as if the camera compat mode
is still active, because `CameraStateMonitor` used to still provide
camera-running signal until listeners processed onCameraClosed.
Flag: com.android.window.flags.enable_camera_compat_for_desktop_windowing
Fixes: 380292051
Test: atest WmTests:CameraStateMonitorTests
Change-Id: I2acd2f7619dfafd24c5934377679b396130623e7
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions