Merge "Do not setForceUse when a2dp config without change"
am: 8a984b9f08
Change-Id: I644087265717458cb2ffa6bb20d29d90690c0022
This commit is contained in:
@@ -2986,6 +2986,9 @@ public class AudioService extends IAudioService.Stub
|
|||||||
.append(Binder.getCallingPid()).toString();
|
.append(Binder.getCallingPid()).toString();
|
||||||
|
|
||||||
synchronized (mBluetoothA2dpEnabledLock) {
|
synchronized (mBluetoothA2dpEnabledLock) {
|
||||||
|
if (mBluetoothA2dpEnabled == on) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
mBluetoothA2dpEnabled = on;
|
mBluetoothA2dpEnabled = on;
|
||||||
sendMsg(mAudioHandler, MSG_SET_FORCE_BT_A2DP_USE, SENDMSG_QUEUE,
|
sendMsg(mAudioHandler, MSG_SET_FORCE_BT_A2DP_USE, SENDMSG_QUEUE,
|
||||||
AudioSystem.FOR_MEDIA,
|
AudioSystem.FOR_MEDIA,
|
||||||
|
|||||||
Reference in New Issue
Block a user