commit | c6f61ee9a96cfbc8015c83c3b8ad868405c0ef51 | [log] [tgz] |
---|---|---|
author | Steve Elliott <steell@google.com> | Tue Jul 13 12:18:23 2021 -0400 |
committer | Steve Elliott <steell@google.com> | Wed Jul 14 14:13:39 2021 +0000 |
tree | b59991fbbd0f473c111ae85872f2b346cd11184b | |
parent | a40b1cb418e8242bbfdd40fb7118415811235e51 [diff] |
Defensively copy callback collections before invoking This is done in order to prevent ConcurrentModificationExceptions, caused by the callback unregistering itself when invoked. The pattern used by this CL is also used by StatusBarStateControllerImpl. Fixes: 192192372 Test: manual Change-Id: Ibac2282d5c9242ae063adb2247d4297291fa3abf Merged-In: Ibac2282d5c9242ae063adb2247d4297291fa3abf