diff options
Diffstat (limited to 'java/com/android/incallui/InCallActivity.java')
-rw-r--r-- | java/com/android/incallui/InCallActivity.java | 8 |
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); |