Merge "Fix typo in MR2ProviderServiceProxy"
diff --git a/services/core/java/com/android/server/media/MediaRoute2ProviderServiceProxy.java b/services/core/java/com/android/server/media/MediaRoute2ProviderServiceProxy.java
index be1ade8..90451b1 100644
--- a/services/core/java/com/android/server/media/MediaRoute2ProviderServiceProxy.java
+++ b/services/core/java/com/android/server/media/MediaRoute2ProviderServiceProxy.java
@@ -398,21 +398,21 @@
}
}
- 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 @@
}
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 @@
return;
}
- mCallback.onSessionReleased(this, releaedSession);
+ mCallback.onSessionReleased(this, releasedSession);
}
private void dispatchSessionCreated(long requestId, RoutingSessionInfo session) {