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

Commit bb00d16f authored by Santiago Seifert's avatar Santiago Seifert
Browse files

Minor MR2ServiceImpl non-functional simplification

Bug: 205124386
Test: N/A. Should be trivially non-functional.
Change-Id: Id8ea437cfdec55a753dd50a7c8aaa177d2d4c84a
parent 5c7390af
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -2138,17 +2138,17 @@ class MediaRouter2ServiceImpl {
                        + "session=" + matchingRequest.mOldSession);
            }

            // Succeeded
            mSessionToRouterMap.put(sessionInfo.getId(), matchingRequest.mRouterRecord);
            if (sessionInfo.isSystemSession()
                    && !matchingRequest.mRouterRecord.mHasModifyAudioRoutingPermission) {
                notifySessionCreatedToRouter(matchingRequest.mRouterRecord,
                        toOriginalRequestId(uniqueRequestId),
                        mSystemProvider.getDefaultSessionInfo());
            } else {
                notifySessionCreatedToRouter(matchingRequest.mRouterRecord,
                        toOriginalRequestId(uniqueRequestId), sessionInfo);
                // The router lacks permission to modify system routing, so we hide system routing
                // session info from them.
                sessionInfo = mSystemProvider.getDefaultSessionInfo();
            }
            mSessionToRouterMap.put(sessionInfo.getId(), matchingRequest.mRouterRecord);
            notifySessionCreatedToRouter(
                    matchingRequest.mRouterRecord,
                    toOriginalRequestId(uniqueRequestId),
                    sessionInfo);
        }

        private void onSessionInfoChangedOnHandler(@NonNull MediaRoute2Provider provider,