commit | 13424a9cb5247848d786bf9a93c53e46ca4e7bad | [log] [tgz] |
---|---|---|
author | Peiyong Lin <lpy@google.com> | Wed Jun 02 02:38:03 2021 +0000 |
committer | Peiyong Lin <lpy@google.com> | Wed Jun 02 02:40:46 2021 +0000 |
tree | eb60b683560436f4d0a9e514e66db95d2cb2e64f | |
parent | 79ce03a8de38ab84ae1e416ad30cfa628c38ee24 [diff] |
Use CopyOnWriteArrayList in RecordingController. Previously there's nothing preventing recording callback to be removed when it is called. This creates cocurrent problems and would crashes system ui. This patch replaces the ArrayList with CopyOnWriteArrayList to avoid this issue. Bug: b/189216310 Test: test by triggering screen record in quick settings Test: test by quickly toggling screen record Change-Id: I6e82f92689b45c92cdad6a811e3e5ddc96a10530