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

Commit 27e02b9b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Apply MediaProfile change to newly set ImsCallProfile" am: 5a04f796

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/net/ims/+/1451238

Change-Id: Ibd959477982b56b25df0093de6d124b6aa12ead8
parents 4a71cada 5a04f796
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2409,10 +2409,12 @@ public class ImsCall implements ICall {
            ImsCallProfile updatedProfile = session.getCallProfile();
            synchronized(ImsCall.this) {
                listener = mListener;
                mCallProfile.mMediaProfile.copyFrom(profile);
                // The ImsCallProfile may have updated here (for example call state change). Query
                // the potentially updated call profile to pick up these changes.
                setCallProfile(updatedProfile);
                // Apply the new mediaProfile on top of the Call Profile so it is not ignored in
                // case the ImsService has not had a chance to update it yet.
                mCallProfile.mMediaProfile.copyFrom(profile);
            }

            if (listener != null) {