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

Commit afe39e35 authored by Brad Ebinger's avatar Brad Ebinger Committed by android-build-merger
Browse files

Merge "Revert "Fix conference call cannot be hung up"" am: 20561837

am: bef7a129

Change-Id: Ia70bb3a05b1ac5001ec41ef8f80627b861e194c0
parents 535e8d54 bef7a129
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -47,18 +47,6 @@ public abstract class Call {
        }
    }

    public enum HoldingRequestState {
        NONE, STARTED, ENDED;

        public boolean isStarted() {
            return this == STARTED;
        }

        public boolean isFinished() {
            return this == ENDED;
        }
    }

    public static State
    stateFromDCState (DriverCall.State dcState) {
        switch (dcState) {
@@ -82,8 +70,6 @@ public abstract class Call {

    public ArrayList<Connection> mConnections = new ArrayList<Connection>();

    public HoldingRequestState mHoldingRequestState = HoldingRequestState.NONE;

    /* Instance Methods */

    /** Do not modify the List result!!! This list is not yours to keep
@@ -291,8 +277,4 @@ public abstract class Call {
    protected void setState(State newState) {
        mState = newState;
    }

    public void updateHoldingRequestState(HoldingRequestState state) {
        mHoldingRequestState = state;
    }
}
+1 −4
Original line number Diff line number Diff line
@@ -118,9 +118,6 @@ public class GsmCdmaCall extends Call {
        newState = stateFromDCState(dc.state);

        if (newState != mState) {
            if (mState == State.HOLDING) {
                updateHoldingRequestState(HoldingRequestState.ENDED);
            }
            mState = newState;
            changed = true;
        }
+0 −6
Original line number Diff line number Diff line
@@ -1283,12 +1283,6 @@ public class GsmCdmaCallTracker extends CallTracker {
                // Do not auto-answer ringing on CHUP, instead just end active calls
                log("hangup all conns in active/background call, without affecting ringing call");
                hangupAllConnections(call);
            } else if (call.mHoldingRequestState.isStarted()) {
                // Even if the progress of holding is not completed, lower layer expects to hang up
                // as background call because of being going to holding.
                log("hangup waiting or background call");
                logHangupEvent(call);
                hangupWaitingOrBackground();
            } else {
                logHangupEvent(call);
                hangupForegroundResumeBackground();