am dac3fd9d: Merge "audio service: fix BT SCO intent permission again" into jb-mr2-dev

* commit 'dac3fd9d90daffb4f6b08c788184ff38523348ba':
  audio service: fix BT SCO intent permission again
This commit is contained in:
Eric Laurent
2013-03-28 16:33:46 -07:00
committed by Android Git Automerger

View File

@ -1533,7 +1533,9 @@ public class AudioService extends IAudioService.Stub implements OnFinished {
// when entering RINGTONE, IN_CALL or IN_COMMUNICATION mode, clear all
// SCO connections not started by the application changing the mode
if (newModeOwnerPid != 0) {
disconnectBluetoothSco(newModeOwnerPid);
final long ident = Binder.clearCallingIdentity();
disconnectBluetoothSco(newModeOwnerPid);
Binder.restoreCallingIdentity(ident);
}
}