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

Commit 8a8c0492 authored by Iván Budnik's avatar Iván Budnik
Browse files

Fix typo in MR2ProviderServiceProxy

This is a non-functional change.

Test: Presubmit.
Bug: 205124386
Change-Id: I5a541e3a13f086ede63ff210c6e20675245f05a6
parent 4c58d93f
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -398,21 +398,21 @@ final class MediaRoute2ProviderServiceProxy extends MediaRoute2Provider
        }
    }

    private void onSessionReleased(Connection connection, RoutingSessionInfo releaedSession) {
    private void onSessionReleased(Connection connection, RoutingSessionInfo releasedSession) {
        if (mActiveConnection != connection) {
            return;
        }
        if (releaedSession == null) {
        if (releasedSession == null) {
            Slog.w(TAG, "onSessionReleased: Ignoring null session sent from " + mComponentName);
            return;
        }

        releaedSession = assignProviderIdForSession(releaedSession);
        releasedSession = assignProviderIdForSession(releasedSession);

        boolean found = false;
        synchronized (mLock) {
            for (RoutingSessionInfo session : mSessionInfos) {
                if (TextUtils.equals(session.getId(), releaedSession.getId())) {
                if (TextUtils.equals(session.getId(), releasedSession.getId())) {
                    mSessionInfos.remove(session);
                    found = true;
                    break;
@@ -420,7 +420,7 @@ final class MediaRoute2ProviderServiceProxy extends MediaRoute2Provider
            }
            if (!found) {
                for (RoutingSessionInfo session : mReleasingSessions) {
                    if (TextUtils.equals(session.getId(), releaedSession.getId())) {
                    if (TextUtils.equals(session.getId(), releasedSession.getId())) {
                        mReleasingSessions.remove(session);
                        return;
                    }
@@ -433,7 +433,7 @@ final class MediaRoute2ProviderServiceProxy extends MediaRoute2Provider
            return;
        }

        mCallback.onSessionReleased(this, releaedSession);
        mCallback.onSessionReleased(this, releasedSession);
    }

    private void dispatchSessionCreated(long requestId, RoutingSessionInfo session) {