diff options
author | erfanian <erfanian@google.com> | 2018-06-25 15:24:07 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-06-26 13:43:46 -0700 |
commit | 38e0ed4c08726d20f3ab68da0328b0ca8bb92ec7 (patch) | |
tree | f0c027d08e9934fcc454b657e977df7591559317 /java | |
parent | b97e4dd76e162ae3f94f4057d8779154bf89f591 (diff) |
Add background call checks.
Bug: 110173835
Test: unit
PiperOrigin-RevId: 202029563
Change-Id: I62021e0f68beb6eff52b475626c40876daf53fbf
Diffstat (limited to 'java')
-rw-r--r-- | java/com/android/incallui/InCallActivity.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/java/com/android/incallui/InCallActivity.java b/java/com/android/incallui/InCallActivity.java index 82139e2c3..9db42d75f 100644 --- a/java/com/android/incallui/InCallActivity.java +++ b/java/com/android/incallui/InCallActivity.java @@ -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); } |