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

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

am 2152edeb: am 16fa58cb: Merge "Fix to check the incoming userid argument for...

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

* commit '2152edeb':
  Fix to check the incoming userid argument for RingtonePlayer
parents b2d4c550 2152edeb
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);
        }