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

Commit 13c61379 authored by Eric Laurent's avatar Eric Laurent Committed by Automerger Merge Worker
Browse files

Merge "AudioService BtHelper: fix isBluetoothScoOn()" into rvc-dev am: c12ddbbc am: 756e11f7

Change-Id: If9b28c8dd1897d201e1bddbf6b58b70677a53bc5
parents 9503bffe 756e11f7
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -358,14 +358,11 @@ public class BtHelper {
     * @return false if SCO isn't connected
     */
    /*package*/ synchronized boolean isBluetoothScoOn() {
        if ((mBluetoothHeadset != null)
                && (mBluetoothHeadset.getAudioState(mBluetoothHeadsetDevice)
                != BluetoothHeadset.STATE_AUDIO_CONNECTED)) {
            Log.w(TAG, "isBluetoothScoOn(true) returning false because "
                    + mBluetoothHeadsetDevice + " is not in audio connected mode");
        if (mBluetoothHeadset == null) {
            return false;
        }
        return true;
        return mBluetoothHeadset.getAudioState(mBluetoothHeadsetDevice)
                == BluetoothHeadset.STATE_AUDIO_CONNECTED;
    }

    /**