Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5efd8942 authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

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

* commit 'dac3fd9d':
  audio service: fix BT SCO intent permission again
parents 0aeb824b dac3fd9d
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -1533,7 +1533,9 @@ public class AudioService extends IAudioService.Stub implements OnFinished {
            // when entering RINGTONE, IN_CALL or IN_COMMUNICATION mode, clear all
            // when entering RINGTONE, IN_CALL or IN_COMMUNICATION mode, clear all
            // SCO connections not started by the application changing the mode
            // SCO connections not started by the application changing the mode
            if (newModeOwnerPid != 0) {
            if (newModeOwnerPid != 0) {
                final long ident = Binder.clearCallingIdentity();
                disconnectBluetoothSco(newModeOwnerPid);
                disconnectBluetoothSco(newModeOwnerPid);
                Binder.restoreCallingIdentity(ident);
            }
            }
        }
        }