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

Commit 845a73ee authored by Hariprasad Jayakumar's avatar Hariprasad Jayakumar
Browse files

Clear disconnected calls

Clear disconnected call from connection

Change-Id: I156bd58965644b1082b5f0a7fd2ff0a697e7330b
parent b357bbe9
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -219,7 +219,14 @@ public class ImsPhoneCall extends Call {
    getFirstConnection() {
        if (mConnections.size() == 0) return null;

        return (ImsPhoneConnection) mConnections.get(0);
        for (int i = mConnections.size() - 1 ; i >= 0 ; i--) {
            ImsPhoneConnection cn = (ImsPhoneConnection)mConnections.get(i);
            if (cn.getState().isAlive()) {
                return (ImsPhoneConnection) mConnections.get(i);
            }
        }

        return null;
    }

    /*package*/ void