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

Commit 536ad62e authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Remove conference participants from cached list" am: 75d38dfe am: 640b7fd0

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1433093

Change-Id: I3802d9b7d3caceccb6b1d3ea2e21b06d12efd0b2
parents 64b0fce6 640b7fd0
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -2452,6 +2452,19 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
            //detach the disconnected connections
            conn.getCall().detach(conn);
            removeConnection(conn);

            // remove conference participants from the cached list when call is disconnected
            List<ConferenceParticipant> cpList = imsCall.getConferenceParticipants();
            if (cpList != null) {
                for (ConferenceParticipant cp : cpList) {
                    String number = ConferenceParticipant.getParticipantAddress(cp.getHandle(),
                            getCountryIso()).getSchemeSpecificPart();
                    if (!TextUtils.isEmpty(number)) {
                        String formattedNumber = getFormattedPhoneNumber(number);
                        mPhoneNumAndConnTime.remove(formattedNumber);
                    }
                }
            }
        }

        if (changed) {