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

Commit 6309689e authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Fix media option settings for A2DP.

Incoming connections move the A2DP state to Connecting
before getting authorized, which messes up the priorities.

Dr No: Eastham
Bug: 2358414
parent 42c98ada
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -463,7 +463,8 @@ public class BluetoothA2dpService extends IBluetoothA2dp.Stub {
                mAudioManager.setParameters("A2dpSuspended=false");
            }

            if (state == BluetoothA2dp.STATE_CONNECTING ||
            if (getSinkPriority(device) > BluetoothA2dp.PRIORITY_OFF &&
                    state == BluetoothA2dp.STATE_CONNECTING ||
                    state == BluetoothA2dp.STATE_CONNECTED) {
                // We have connected or attempting to connect.
                // Bump priority