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

Commit 10d2f01d authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Query updatedImsCallProfile when callSessionProgressing is called.

When ImsCallSessionListener#callSessionProgressing is called, also
query the ImsService for a new ImsCallProfile to catch any call state
updates.

Bug: 168564115
Test: atest ImsCommonTests FrameworksTelephonyTests
Change-Id: I23dc6592818fa2f0d30a01e47bbeea05fa079823
parent 2406ac72
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2406,9 +2406,13 @@ public class ImsCall implements ICall {

            ImsCall.Listener listener;

            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);
            }

            if (listener != null) {