[Media ML] public alternative for MediaController#controlsSameSession

Provide a public alternative for @UnsupportedAppUsage method.

Bug: 161331118
Test: build successful
Change-Id: I69626b8665a1173e29cff4680f82c7fc99c045ac
This commit is contained in:
Kyunglyul Hyun
2020-09-29 07:23:09 +00:00
parent 7cbdbffe2b
commit 3b4f87db0d

View File

@@ -472,7 +472,8 @@ public final class MediaController {
/**
* @hide
*/
@UnsupportedAppUsage
@UnsupportedAppUsage(publicAlternatives = "Check equality of {@link #getSessionToken() tokens}"
+ "instead.")
public boolean controlsSameSession(MediaController other) {
if (other == null) return false;
return mSessionBinder.asBinder() == other.getSessionBinder().asBinder();