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

Commit 6ce4466f 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:...

Merge "Remove conference participants from cached list" am: 75d38dfe am: 640b7fd0 am: 536ad62e am: 3d6b83be

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

Change-Id: I2c56ead51a81734df8fb9727683722479fafbc93
parents 3090f413 3d6b83be
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -2466,6 +2466,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) {