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

Commit ae15c0bc authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Ignore isVolteEnabledByPlatform when checking useImsForEmergency

Reverting ag/740815 as that is not needed now with the fix for
b/23704763. This is specifically needed for the cases when there's
no SIM in the device.

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

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

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