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

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

am c81daf7f: am db56efe6: am 2152edeb: am 16fa58cb: Merge "Fix to check the...

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

* commit 'c81daf7f':
  Fix to check the incoming userid argument for RingtonePlayer
parents 14e12258 c81daf7f
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -159,7 +159,9 @@ public class RingtonePlayer extends SystemUI {
            if (Binder.getCallingUid() != Process.SYSTEM_UID) {
            if (Binder.getCallingUid() != Process.SYSTEM_UID) {
                throw new SecurityException("Async playback only available from 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);
            mAsyncPlayer.play(getContextForUser(user), uri, looping, aa);
        }
        }