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

Commit 2fe95299 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Bypass WiFi Only WFC check if this is an emergency call

Fixes: 184610738
Test: atest FrameworksTelephonyTests
Change-Id: Ia2261b959ab776d91d0067912a2d7be998cc8b24
parent 9f4843e4
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1392,7 +1392,11 @@ public class GsmCdmaPhone extends Phone {
                    + ((imsPhone != null) ? imsPhone.getServiceState().getState() : "N/A"));
        }

        // Bypass WiFi Only WFC check if this is an emergency call - we should still try to
        // place over cellular if possible.
        if (!isEmergency) {
            Phone.checkWfcWifiOnlyModeBeforeDial(mImsPhone, mPhoneId, mContext);
        }
        if (imsPhone != null && !allowWpsOverIms && !useImsForCall && isWpsCall
                && imsPhone.getCallTracker() instanceof ImsPhoneCallTracker) {
            logi("WPS call placed over CS; disconnecting all IMS calls..");