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

Commit 5f15c3f0 authored by Etan Cohen's avatar Etan Cohen
Browse files

Only use IMS for E911 if VoLTE is supported on device/carrier.

Bug: 22777920
Change-Id: I5f79c36a7e9b89f70b69b0cab098d8b0a288b1b9
parent 7a384469
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -435,7 +435,8 @@ public class CDMAPhone extends PhoneBase {
                 && (imsPhone.isVolteEnabled() || imsPhone.isVowifiEnabled())
                 && (imsPhone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE);

        boolean useImsForEmergency = imsPhone != null
        boolean useImsForEmergency = ImsManager.isVolteEnabledByPlatform(mContext)
                && imsPhone != null
                && isEmergency
                &&  mContext.getResources().getBoolean(
                        com.android.internal.R.bool.useImsAlwaysForEmergencyCall)
+2 −1
Original line number Diff line number Diff line
@@ -810,7 +810,8 @@ public class GSMPhone extends PhoneBase {
                 && (imsPhone.isVolteEnabled() || imsPhone.isVowifiEnabled())
                 && (imsPhone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE);

        boolean useImsForEmergency = imsPhone != null
        boolean useImsForEmergency = ImsManager.isVolteEnabledByPlatform(mContext
                && imsPhone != null
                && isEmergency
                &&  mContext.getResources().getBoolean(
                        com.android.internal.R.bool.useImsAlwaysForEmergencyCall)