Merge "AudioService: fix SCO audio resume after call" into sc-v2-dev

This commit is contained in:
TreeHugger Robot
2021-12-10 20:44:54 +00:00
committed by Android (Google) Code Review

View File

@@ -328,7 +328,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
}
boolean isBtScoRequested = isBluetoothScoRequested();
if (isBtScoRequested && !wasBtScoRequested) {
if (isBtScoRequested && (!wasBtScoRequested || !isBluetoothScoActive())) {
if (!mBtHelper.startBluetoothSco(scoAudioMode, eventSource)) {
Log.w(TAG, "setCommunicationRouteForClient: failure to start BT SCO for pid: "
+ pid);