Merge "Fix to check the incoming userid argument for RingtonePlayer" into mnc-dev

This commit is contained in:
Jean-Michel Trivi
2015-08-14 18:19:17 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
}