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

Skip to content
Commit acadf166 authored by Chen Chen's avatar Chen Chen
Browse files

HeadsetPhoneState: Synchronize constructor with phone state listening functions.

Bug: 241871296

The bug is that mSignalStrengthUpdateRequest is null when bt calls mTelephonyManager.clearSignalStrengthUpdateRequest(mSignalStrengthUpdateRequest).

mSignalStrengthUpdateRequest is created at constructor. So the only explanation is that there is a race condition between the constructor and stopListenForPhoneState() who calls clearSignalStrengthUpdateRequest();

Test: atest BluetoothInstrumentationTests
Change-Id: I0d456a4a7981e1befe291d2045b926a4da4b6bf5
Merged-In: I0d456a4a7981e1befe291d2045b926a4da4b6bf5
(cherry picked from a8e1aab54a18296bcb33eef34e4eeb7505f2e406)
parent ecff95ce
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