Commit 424eeadb authored by Satish Kodishala's avatar Satish Kodishala Committed by Satish Kumar Kodishala
Browse files

Don't honor startBluetoothSco/stopBluetoothSco when BT is OFF

When VOIP app calls startBluetoothSco during BT OFF,
mScoAudioState is set to SCO_STATE_ACTIVATE_REQ and count is
incremented by 1. However, when onServiceConnected for
HeadsetService gets called during BT turn ON, mScoAudioState is
reset to 0 but count is still 1. This leads to subsequent
startBluetoothSco() requests to fail. Don't honor
startBluetoothSco/stopBluetoothSco when BT is OFF.

CRs-Fixed: 2490082
Change-Id: Ida3a0548a5cadd47194d4a024f8322177e794d05
parent a5bd0c97
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment