summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorwangqi <wangqi@google.com>2018-06-06 14:01:47 -0700
committerCopybara-Service <copybara-piper@google.com>2018-06-06 15:23:23 -0700
commit91958f831339583e631c2bf946e96808dec462cb (patch)
treef2d1ca79abd90b873bfae6968d15bab66329ca7d /java
parent1004ab9533d3b4c8bf7d25c64be7114912e84286 (diff)
Supported two RTT calls at same time.
Bug: 109738484 Test: manual PiperOrigin-RevId: 199524711 Change-Id: Ia75c41004179da5eae17b6acbc952d652e8d7480
Diffstat (limited to 'java')
-rw-r--r--java/com/android/incallui/InCallActivity.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/com/android/incallui/InCallActivity.java b/java/com/android/incallui/InCallActivity.java
index 7e1519724..a550ddeae 100644
--- a/java/com/android/incallui/InCallActivity.java
+++ b/java/com/android/incallui/InCallActivity.java
@@ -1555,11 +1555,11 @@ public class InCallActivity extends TransactionSafeFragmentActivity
private boolean showRttCallScreenFragment(FragmentTransaction transaction, DialerCall call) {
if (didShowRttCallScreen) {
- // This shouldn't happen since only one RTT call is allow at same time.
- if (!getRttCallScreen().getCallId().equals(call.getId())) {
- LogUtil.e("InCallActivity.showRttCallScreenFragment", "RTT call id doesn't match");
+ if (getRttCallScreen().getCallId().equals(call.getId())) {
+ return false;
}
- return false;
+ LogUtil.i("InCallActivity.showRttCallScreenFragment", "RTT call id doesn't match");
+ hideRttCallScreenFragment(transaction);
}
RttCallScreen rttCallScreen = RttBindings.createRttCallScreen(call.getId());
transaction.add(R.id.main, rttCallScreen.getRttCallScreenFragment(), Tags.RTT_CALL_SCREEN);