Expose isTrusted property of ControllerInfo.

PiperOrigin-RevId: 585052580
This commit is contained in:
siroberts 2023-11-24 03:35:28 -08:00 committed by Copybara-Service
parent c0ef5f6de4
commit bc36553e81

View File

@ -554,10 +554,11 @@ public class MediaSession {
/** /**
* Returns if the controller has been granted {@code android.permission.MEDIA_CONTENT_CONTROL} * Returns if the controller has been granted {@code android.permission.MEDIA_CONTENT_CONTROL}
* or has a enabled notification listener so it can be trusted to accept connection and incoming * or has an enabled notification listener so it can be trusted to accept connection and
* command request. * incoming command requests.
*/ */
/* package */ boolean isTrusted() { @UnstableApi
public boolean isTrusted() {
return isTrusted; return isTrusted;
} }