Merge "Do not setForceUse when a2dp config without change"

This commit is contained in:
Treehugger Robot
2018-05-28 17:00:50 +00:00
committed by Gerrit Code Review

View File

@@ -2986,6 +2986,9 @@ public class AudioService extends IAudioService.Stub
.append(Binder.getCallingPid()).toString();
synchronized (mBluetoothA2dpEnabledLock) {
if (mBluetoothA2dpEnabled == on) {
return;
}
mBluetoothA2dpEnabled = on;
sendMsg(mAudioHandler, MSG_SET_FORCE_BT_A2DP_USE, SENDMSG_QUEUE,
AudioSystem.FOR_MEDIA,