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

Commit fc9c8ffc authored by Pengquan Meng's avatar Pengquan Meng
Browse files

Revert "Integrate connectionServiceFocusManager into call flow"

This reverts commit bd3cae59.

This caused Duo unusable, just revert it and investigate the root caused.

Change-Id: I3107fe568671f6222e851310dd29083aff8f6eea
parent 561cede1
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -1763,8 +1763,7 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable,
    /**
     * Puts the call on hold if it is currently active.
     */
    @VisibleForTesting
    public void hold() {
    void hold() {
        if (mState == CallState.ACTIVE) {
            if (mConnectionService != null) {
                mConnectionService.hold(this);
@@ -1779,8 +1778,7 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable,
    /**
     * Releases the call from hold if it is currently active.
     */
    @VisibleForTesting
    public void unhold() {
    void unhold() {
        if (mState == CallState.ON_HOLD) {
            if (mConnectionService != null) {
                mConnectionService.unhold(this);
@@ -2802,10 +2800,6 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable,
        return mOriginalConnectionId;
    }

    ConnectionServiceFocusManager getConnectionServiceFocusManager() {
        return mCallsManager.getConnectionServiceFocusManager();
    }

    /**
     * Determines if a {@link Call}'s capabilities bitmask indicates that video is supported either
     * remotely or locally.
+139 −228

File changed.

Preview size limit exceeded, changes collapsed.

+13 −37

File changed.

Preview size limit exceeded, changes collapsed.

+4 −42

File changed.

Preview size limit exceeded, changes collapsed.

+1 −13
Original line number Diff line number Diff line
@@ -214,19 +214,7 @@ public class CreateConnectionProcessor implements CreateConnectionResponse {
                mCall.setConnectionService(mService);
                setTimeoutIfNeeded(mService, attempt);

                // Start to create the connection after the ConnectionService of the call has gained
                // the focus.
                mCall.getConnectionServiceFocusManager().requestFocus(
                        mCall,
                        new CallsManager.RequestCallback(new CallsManager.PendingAction() {
                            @Override
                            public void performAction() {
                                Log.d(this, "perform create connection");
                                mService.createConnection(
                                        mCall,
                                        CreateConnectionProcessor.this);
                            }
                        }));
                mService.createConnection(mCall, this);
            }
        } else {
            Log.v(this, "attemptNextPhoneAccount, no more accounts, failing");
Loading