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

Commit 640b7fd0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

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

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

Change-Id: I5f1b6f9f85c8abae3539378541763a76e7dcff72
parents 615b0865 75d38dfe
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) {