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

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

Merge "AudioService: stop SCO audio when communication route client dies" into...

Merge "AudioService: stop SCO audio when communication route client dies" into sc-qpr1-dev am: f369d1dd am: 32c97285

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15612138

Change-Id: Iab21ac137e1c376d4c4eeeb9c31b797fba656a6c
parents ccb4eb05 32c97285
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -1719,11 +1719,10 @@ import java.util.concurrent.atomic.AtomicBoolean;
        if (client == null) {
            return;
        }
        Log.w(TAG, "Speaker client died");
        if (removeCommunicationRouteClient(client.getBinder(), false)
                != null) {
            onUpdateCommunicationRoute("onCommunicationRouteClientDied");
        }
        Log.w(TAG, "Communication client died");
        setCommunicationRouteForClient(
                client.getBinder(), client.getPid(), null, BtHelper.SCO_MODE_UNDEFINED,
                "onCommunicationRouteClientDied");
    }

    /**