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

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

am 05fce092: am 8d24fe23: Merge "AudioService: fix permission check." into lmp-mr1-dev

* commit '05fce092':
  AudioService: fix permission check.
parents 90792590 05fce092
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -3248,7 +3248,10 @@ public class AudioService extends IAudioService.Stub {


        TelecomManager telecomManager =
        TelecomManager telecomManager =
                (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE);
                (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE);

        final long ident = Binder.clearCallingIdentity();
        IsInCall = telecomManager.isInCall();
        IsInCall = telecomManager.isInCall();
        Binder.restoreCallingIdentity(ident);


        return (IsInCall || getMode() == AudioManager.MODE_IN_COMMUNICATION);
        return (IsInCall || getMode() == AudioManager.MODE_IN_COMMUNICATION);
    }
    }