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

Commit 0c2e7237 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "MediaSession2: Change isTrusted() usages to isTrustedForMediaControl" into pi-dev

parents 498e03de 81e36fc6
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