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

Commit 7a5c4667 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "IMS-VT: Convert emergency video call to voice call." into LA.BF64.1

parents e3a4baa2 38b5c05a
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();