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

Commit 36e3ada7 authored by Yorke Lee's avatar Yorke Lee Committed by Android (Google) Code Review
Browse files

Merge "Cleanup and remove call if ConnectionService crashes" into lmp-mr1-dev

parents 452f7042 2af16b65
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -847,8 +847,11 @@ public final class CallsManager extends Call.ListenerBase {
        if (service != null) {
        if (service != null) {
            for (Call call : mCalls) {
            for (Call call : mCalls) {
                if (call.getConnectionService() == service) {
                if (call.getConnectionService() == service) {
                    if (call.getState() != CallState.DISCONNECTED) {
                        markCallAsDisconnected(call, new DisconnectCause(DisconnectCause.ERROR));
                        markCallAsDisconnected(call, new DisconnectCause(DisconnectCause.ERROR));
                    }
                    }
                    markCallAsRemoved(call);
                }
            }
            }
        }
        }
    }
    }