From 3d5e04f46991780f5bb6ef7ad1ebf339338e6172 Mon Sep 17 00:00:00 2001 From: wangqi Date: Wed, 30 May 2018 12:12:59 -0700 Subject: Add toast message when RTT request failed. Bug: 79522243 Test: manual PiperOrigin-RevId: 198598685 Change-Id: I05144ec734827b29e89bbba5070c9cb0ab06c215 --- java/com/android/dialer/theme/common/res/values/strings.xml | 3 +++ java/com/android/incallui/call/DialerCall.java | 1 + 2 files changed, 4 insertions(+) (limited to 'java') diff --git a/java/com/android/dialer/theme/common/res/values/strings.xml b/java/com/android/dialer/theme/common/res/values/strings.xml index 7d7209207..5952a01d7 100644 --- a/java/com/android/dialer/theme/common/res/values/strings.xml +++ b/java/com/android/dialer/theme/common/res/values/strings.xml @@ -39,6 +39,9 @@ Continuing call using Wi\u2011Fi\u2026 + + RTT not available for this call + diff --git a/java/com/android/incallui/call/DialerCall.java b/java/com/android/incallui/call/DialerCall.java index b2c8dcc67..56a88b156 100644 --- a/java/com/android/incallui/call/DialerCall.java +++ b/java/com/android/incallui/call/DialerCall.java @@ -315,6 +315,7 @@ public class DialerCall implements VideoTechListener, StateChangedListener, Capa @Override public void onRttInitiationFailure(Call call, int reason) { LogUtil.v("TelecomCallCallback.onRttInitiationFailure", "reason=%d", reason); + Toast.makeText(context, R.string.rtt_call_not_available_toast, Toast.LENGTH_LONG).show(); update(); } -- cgit v1.2.3