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

Commit 2152edeb authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by Android Git Automerger
Browse files

am 16fa58cb: Merge "Fix to check the incoming userid argument for RingtonePlayer" into mnc-dev

* commit '16fa58cb':
  Fix to check the incoming userid argument for RingtonePlayer
parents b47890c4 16fa58cb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -159,7 +159,9 @@ public class RingtonePlayer extends SystemUI {
            if (Binder.getCallingUid() != Process.SYSTEM_UID) {
                throw new SecurityException("Async playback only available from system UID.");
            }

            if (UserHandle.ALL.equals(user)) {
                user = UserHandle.OWNER;
            }
            mAsyncPlayer.play(getContextForUser(user), uri, looping, aa);
        }