Merge "AudioService: fix SCO audio resume after call" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
14a62045ac
@@ -328,7 +328,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean isBtScoRequested = isBluetoothScoRequested();
|
boolean isBtScoRequested = isBluetoothScoRequested();
|
||||||
if (isBtScoRequested && !wasBtScoRequested) {
|
if (isBtScoRequested && (!wasBtScoRequested || !isBluetoothScoActive())) {
|
||||||
if (!mBtHelper.startBluetoothSco(scoAudioMode, eventSource)) {
|
if (!mBtHelper.startBluetoothSco(scoAudioMode, eventSource)) {
|
||||||
Log.w(TAG, "setCommunicationRouteForClient: failure to start BT SCO for pid: "
|
Log.w(TAG, "setCommunicationRouteForClient: failure to start BT SCO for pid: "
|
||||||
+ pid);
|
+ pid);
|
||||||
|
|||||||
Reference in New Issue
Block a user