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

Commit e33e9db6 authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

am 3cd1f9f9: am 3b591260: Fix issue 2604270 Device auto connects to Car Dock...

am 3cd1f9f9: am 3b591260: Fix issue 2604270  Device auto connects to Car Dock (Media profile) after undocking.

Merge commit '3cd1f9f9' into kraken

* commit '3cd1f9f9':
  Fix issue 2604270  Device auto connects to Car Dock (Media profile) after undocking.
parents 732c73e1 3cd1f9f9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1728,6 +1728,9 @@ public class AudioService extends IAudioService.Stub {
    }

    private void makeA2dpDeviceUnavailableLater(String address) {
        // prevent any activity on the A2DP audio output to avoid unwanted
        // reconnection of the sink.
        AudioSystem.setParameters("A2dpSuspended=true");
        // the device will be made unavailable later, so consider it disconnected right away
        mConnectedDevices.remove(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP);
        // send the delayed message to make the device unavailable later