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

Commit 3b4f87db authored by Kyunglyul Hyun's avatar Kyunglyul Hyun
Browse files

[Media ML] public alternative for MediaController#controlsSameSession

Provide a public alternative for @UnsupportedAppUsage method.

Bug: 161331118
Test: build successful
Change-Id: I69626b8665a1173e29cff4680f82c7fc99c045ac
parent 7cbdbffe
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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();