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

Commit 5d3ff3cf authored by Omkar Kolangade's avatar Omkar Kolangade Committed by Tyler Gunn
Browse files

IMS: Initiate Video Lte and Wifi calls over IMS

If video call is enabled on a device i.e. if either video
over LTE or video over Wifi is supported and we are trying
to initiate a video call, initiate the call on IMS pipe.

Bug: 27254385
Change-Id: Ifebf69fc12d0148b21133cf9970481e970f2311e
parent ac529d09
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1061,7 +1061,8 @@ public class GsmCdmaPhone extends Phone {

        boolean imsUseEnabled = isImsUseEnabled()
                 && imsPhone != null
                 && (imsPhone.isVolteEnabled() || imsPhone.isWifiCallingEnabled())
                 && (imsPhone.isVolteEnabled() || imsPhone.isWifiCallingEnabled() ||
                 (imsPhone.isVideoEnabled() && VideoProfile.isVideo(videoState)))
                 && (imsPhone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE);

        boolean useImsForEmergency = imsPhone != null
@@ -1085,6 +1086,8 @@ public class GsmCdmaPhone extends Phone {
                    + ((imsPhone != null) ? imsPhone.isVolteEnabled() : "N/A")
                    + ", imsPhone.isVowifiEnabled()="
                    + ((imsPhone != null) ? imsPhone.isWifiCallingEnabled() : "N/A")
                    + ", imsPhone.isVideoEnabled()="
                    + ((imsPhone != null) ? imsPhone.isVideoEnabled() : "N/A")
                    + ", imsPhone.getServiceState().getState()="
                    + ((imsPhone != null) ? imsPhone.getServiceState().getState() : "N/A"));
        }