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

Commit 38e0ed4c authored by erfanian's avatar erfanian Committed by Copybara-Service
Browse files

Add background call checks.

Bug: 110173835
Test: unit
PiperOrigin-RevId: 202029563
Change-Id: I62021e0f68beb6eff52b475626c40876daf53fbf
parent b97e4dd7
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1293,6 +1293,16 @@ public class InCallActivity extends TransactionSafeFragmentActivity
            : CallList.getInstance().getActiveCall();

    if (call == null) {
      // This is a special case where the first call is not automatically resumed
      // after the second active call is remotely disconnected.
      DialerCall backgroundCall = CallList.getInstance().getBackgroundCall();
      if (backgroundCall != null && backgroundCall.isSpeakEasyCall()) {
        LogUtil.i("InCallActivity.getShouldShowSpeakEasyUi", "taking call off hold");

        backgroundCall.unhold();
        return new ShouldShowUiResult(true, backgroundCall);
      }

      return new ShouldShowUiResult(false, call);
    }