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

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

Change-Id: I912c54e434e8a72eeccc24638afbc5cb99eb1d61
This commit is contained in:
TreeHugger Robot
2021-12-10 20:59:31 +00:00
committed by Automerger Merge Worker

View File

@@ -327,7 +327,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);