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

Commit 5ed284e4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "DSDA - Resolve failing CTS with flag enabled" into main

parents 6215e763 527f7d11
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -3216,7 +3216,18 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable,
            } else if (mConnectionService != null) {
                if (mFlags.transactionalCsVerifier() || mFlags.enableCallSequencing()) {
                    holdFutureHandler = awaitCallStateChangeAndMaybeDisconnectCall(isSelfManaged(),
                            "hold", CallState.ON_HOLD);
                            "hold", CallState.ON_HOLD, CallState.DISCONNECTED).thenCompose(
                                    (result) -> {
                                        // Explicitly handle self-managed hold failures where we
                                        // explicitly disconnect the call and treat it as a
                                        // completed transaction.
                                        if (!result && isSelfManaged()) {
                                            Log.i(this, "hold: Completing transaction "
                                                    + "after disconnecting held call.");
                                            return CompletableFuture.completedFuture(true);
                                        }
                                        return CompletableFuture.completedFuture(result);
                                    });;
                }
                mConnectionService.hold(this);
                return holdFutureHandler;