Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38b5c05a authored by Garik Badalyan's avatar Garik Badalyan Committed by Gerrit - the friendly Code Review server
Browse files

IMS-VT: Convert emergency video call to voice call.

Convert emergency video call to voice call.

Change-Id: I09b82dcb6308a1177716b77e87da68161000518b
CRs-Fixed: 763777
parent 35adbf35
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -134,6 +134,14 @@ public class CallActivity extends Activity {
                VideoProfile.VideoState.AUDIO_ONLY);
        Log.d(this, "processOutgoingCallIntent videoState = " + videoState);

        if (VideoProfile.VideoState.isVideo(videoState)
                && TelephonyUtil.shouldProcessAsEmergency(this, handle)) {
            Log.d(this, "Emergency call...Converting video call to voice...");
            videoState = VideoProfile.VideoState.AUDIO_ONLY;
            intent.putExtra(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE,
                    videoState);
        }

        if (VideoProfile.VideoState.isVideo(videoState) && isTtyModeEnabled()) {
            Toast.makeText(this, getResources().getString(R.string.
                    video_call_not_allowed_if_tty_enabled), Toast.LENGTH_SHORT).show();