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

Commit 93b863e7 authored by Hyundo Moon's avatar Hyundo Moon Committed by android-build-merger
Browse files

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

am: 0c2e7237

Change-Id: I7b6ad4cb9860c31e6e08b0098eec7acd36a8ad9e
parents 1f2bbd31 0c2e7237
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