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

Commit 7e328b4d authored by AnubhavGupta's avatar AnubhavGupta Committed by Gerrit - the friendly Code Review server
Browse files

Bluetooth: Dont loose focus for remote suspend only in case of call

- in case of remote suspend being initiated as a result of MO/MT
  call, we should not abandon focus.
- abandon focus in other cases of remote initiated suspend.

CRs-Fixed: 761419

Change-Id: Ic2ffe4f66814188f9a6bc4e1c2fee198347e03b0
parent 025d800d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -619,7 +619,7 @@ final class A2dpSinkStateMachine extends StateMachine {
                    mPlayingDevice = null;
                    broadcastAudioState(device, BluetoothA2dpSink.STATE_NOT_PLAYING,
                                        BluetoothA2dpSink.STATE_PLAYING);
                    if ((mAudioFocusAcquired == AUDIO_FOCUS_LOSS_TRANSIENT) ||
                    if ((mAudioFocusAcquired == AUDIO_FOCUS_LOSS_TRANSIENT) &&
                                     (state == AUDIO_STATE_REMOTE_SUSPEND)) {
                        log(" Dont't Loose audiofocus in case of suspend ");
                        break;