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

Skip to content
Commit 4ddb6035 authored by Chienyuan's avatar Chienyuan
Browse files

HFP: synchronize sendDeviceStateChanged()

onSignalStrengthsChanged and ACTION_SIM_STATE_CHANGED trigger
sendDeviceStateChanged() from different threads. It may cause
race condition and send old device state to the headset.
Use "synchronize" to make sure device state changed event
sent in the right order.

Bug: 146400643
Test: manual, on/off airplane mode, connect headset
Change-Id: Ia02b6c2a96b19ab53322e237de458811e070f9a2
parent 94dd6410
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