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

Commit 7f4305fb authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Clear disconnected calls"

parents 853e0d20 845a73ee
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -222,7 +222,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