Skip to content
Snippets Groups Projects
Commit 0cb6ebe9 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
parent 624e50d9
No related branches found
No related tags found
No related merge requests found
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