diff options
| author | 2024-06-10 15:11:49 +0000 | |
|---|---|---|
| committer | 2024-06-10 15:13:51 +0000 | |
| commit | 79bfab3f5ba993201c2de34f3b603f028604a818 (patch) | |
| tree | 2eb10a140a27bdec275502f64df2572c09347d2f /libs/androidfw/FileStream.cpp | |
| parent | 584f2b26530558ddd6894aadd0f0cd344b181ebd (diff) | |
Fix ConcurrentModificationException in RotationChangeProvider
When bgHandler and CallbackHandler were different, ConcurrentModificationException could have happened.
Using a lock here is not ideal, as we would block {un}registration of listeners in the main thread.
Using a CopyOnWriteArrayList will fix the problem with a negligible memory overhead.
Fix: 344626706
Test: RotationChangeProviderTest
Flag: NONE bugfix
Change-Id: Ia2bf884e4f889b19ab85f0b7734509bbcd1f3b96
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions