Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4012458 authored by Omar Elmekkawy's avatar Omar Elmekkawy
Browse files

Use CopyOnWriteArrayList for various listeners in ShellTaskOrganizer

When calling tasks listeners from ShellTaskOrganizer, task listeners that
remove themselves could remove themselves from the list of listeners,
modifying the Collection while iterating on it, this causes undefined
behavior and NullPointerException.

This CL updates this behavior to use CopyOnWriteArrayList instead of
ArraySet to avoid modifying the set while iterating on it.

Flag: EXEMPT, persist.wm.debug.desktop_experience_devopts
Test: EXEMPT, changing private logic, tested on device.
Bug: 416150006
Change-Id: I2dd6872c36faa4a424f9e3aa86eb14cd4c612efd
parent 3d3000cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment