diff options
author | wangqi <wangqi@google.com> | 2017-06-29 13:14:51 -0700 |
---|---|---|
committer | Brandon Maxwell <maxwelb@google.com> | 2017-07-06 14:26:50 -0700 |
commit | 69674662dbcf4b88fc4f2b290bd3ab925ae411c8 (patch) | |
tree | 5fad58b25e18f6fee78d0bb9315b9fb49156f6de /java/com/android/incallui/InCallPresenter.java | |
parent | fca382768e43a66dd5f723c2aba02fcc066c1ca5 (diff) |
Add video call not available dialog.
When telecom disconnect the video call with the code of DisconnectCause.ERROR and the DisconnectCause#getReason() of "IMS_ACCESS_BLOCKED", we should show an error dialog to user indicating that video call is not available and providing a option to make a voice call instead.
Screenshots:
https://screenshot.googleplex.com/YTUGVouoLmj
Bug: 33821263
Test: manual, VideoCallNotAvailablePromptTest
PiperOrigin-RevId: 160563754
Change-Id: Ie2eb735a92c577b5ae5a5e8b7efa2d699fc964bc
Diffstat (limited to 'java/com/android/incallui/InCallPresenter.java')
-rw-r--r-- | java/com/android/incallui/InCallPresenter.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/com/android/incallui/InCallPresenter.java b/java/com/android/incallui/InCallPresenter.java index eb0d2d38a..64bc4048c 100644 --- a/java/com/android/incallui/InCallPresenter.java +++ b/java/com/android/incallui/InCallPresenter.java @@ -54,6 +54,7 @@ import com.android.incallui.call.CallList; import com.android.incallui.call.DialerCall; import com.android.incallui.call.ExternalCallList; import com.android.incallui.call.TelecomAdapter; +import com.android.incallui.disconnectdialog.DisconnectMessage; import com.android.incallui.latencyreport.LatencyReport; import com.android.incallui.legacyblocking.BlockedNumberContentObserver; import com.android.incallui.spam.SpamCallListListener; @@ -1249,7 +1250,8 @@ public class InCallPresenter implements CallList.Listener { if (call.getAccountHandle() == null && !call.isConferenceCall()) { setDisconnectCauseForMissingAccounts(call); } - mInCallActivity.maybeShowErrorDialogOnDisconnect(call.getDisconnectCause()); + mInCallActivity.maybeShowErrorDialogOnDisconnect( + new DisconnectMessage(mInCallActivity, call)); } } |