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)
Loading
Please register or sign in to comment