diff options
| author | 2023-12-07 20:20:22 +0000 | |
|---|---|---|
| committer | 2023-12-12 07:58:01 +0000 | |
| commit | e94b29da2776ae634de0eec8e68a5514a1a37585 (patch) | |
| tree | 4749e5f182a9b6499456de8ecb82e4d290747eba /libs/androidfw/StringPool.cpp | |
| parent | 7c182fd40f957d4d938e08bb1c04b330873946a0 (diff) | |
Avoid consecutive onVisibilityChanged calls
Calling directly onVisibilityChanged(...) from
WallpaperService#updateSurface bypasses the check that the visibility
actually changed. Instead we use doVisibilityChanged(...), which is a
wrapper to onVisibilityChanged that checks that the visibility actually
changed.
This prevents a bug that triggers two consecutive calls to
onVisibilitychanged(false). One of the call comes from engine.attach ->
updateSurface, the other one from picker -> resizePreview ->
updateSurface.
Flag: ACONFIG com.android.window.flags.no_consecutive_visibility_events DEVELOPMENT
Bug: 285631818
Bug: 313527496 (to be verified)
Test: manually check onVisibilityChanged(false) logs
Test: treehugger
Change-Id: I4fc189cdb9d4b4de36d88fe27ad651ddf0b40449
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions