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

Commit 52d06b24 authored by Hyundo Moon's avatar Hyundo Moon Committed by android-build-merger
Browse files

Merge "MediaSession2: Change isTrusted() usages to isTrustedForMediaControl"...

Merge "MediaSession2: Change isTrusted() usages to isTrustedForMediaControl" into pi-dev am: 0c2e7237
am: 93b863e7

Change-Id: I39d8f5c269a355ea68b73968c2422cdcb7fcea24
parents f628b49b 93b863e7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1242,7 +1242,8 @@ public class MediaSession2Impl implements MediaSession2Provider {
            // Ask server whether the controller is trusted.
            // App cannot know this because apps cannot query enabled notification listener for
            // another package, but system server can do.
            mIsTrusted = manager.isTrusted(packageName, pid, uid);
            mIsTrusted = manager.isTrustedForMediaControl(
                    new MediaSessionManager.RemoteUserInfo(packageName, pid, uid));
        }

        @Override