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

Skip to content
Commit 869dc9cb authored by Grace Jia's avatar Grace Jia
Browse files

Synchronize onMultiSimConfigChanged with callback registrations.

TelephonyRegistry is susceptible to race conditions around
MULTI_SIM_CONFIG_CHANGED broadcast. When broadcast received, we'll
executing onMultiSimConfigChanged which may cause mNumPhones changed.
However, callback registrations at the same times might try to access
an already non-exist phoneId. Synchronize the whole
onMultiSimConfigChanged with callback registrations to avoid potential
race conditions.

Bug: 221080521
Test: TelephonyRegistryTest
Change-Id: I36a3d2a3d153cd68dd3ec18774d457dc32b00c82
parent 12dd1d67
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment