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

Commit 1eb10ece authored by jackqdyulei's avatar jackqdyulei
Browse files

Refine the sync in CachedBluetoothDevice

SystemUi uses multi-thread to access CachedBluetoothDevice. If one thread
is traversing the mProfiles while another thread is updating this
mProifles, it will crash with ConcurrentModificationException.

This CL adds lock to mProfiles manually to avoid this case.

Bug: 117122392
Test: Manual
Change-Id: I5d90cd6e35a18f1e782e766b7c448088243d27cf
parent e3e71ec1
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