Launcher3: Fix potential ConcurrentModificationException

The workspaceItemInfos passed in may be modified elsewhere at the same
time as this executor is running, we can introduce a new ArrayList
object initialized with all original workspaceItemInfos to avoid
ConcurrentModificationException as a tricky workaround.

Bug: 271324475
Test: atest
Change-Id: I087e2b780a35743b8f9cb1371dd13fa241737f8c
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
1 file changed