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

Commit 9e4d76bf authored by Suresh Koleti's avatar Suresh Koleti
Browse files

IMS: Allow USSD request in airplane mode

-- As per current design all USSD request over IMS will
   be fallback to CS and CS socket is used to send the
   USSD request.
-- Allow USSD request over CS socket if UT services
   are enabled in airplane mode.

Test: Manual
Bug: 71566580
Change-Id: Ib2482a71a0c0c7ca7005bf4aecf4a66f4814055d
parent 0bc2cefb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1114,7 +1114,8 @@ public class GsmCdmaPhone extends Phone {
        // Check non-emergency voice CS call - shouldn't dial when POWER_OFF
        if (mSST != null && mSST.mSS.getState() == ServiceState.STATE_POWER_OFF /* CS POWER_OFF */
                && !VideoProfile.isVideo(dialArgs.videoState) /* voice call */
                && !isEmergency /* non-emergency call */) {
                && !isEmergency /* non-emergency call */
                && !(isUt && useImsForUt) /* not UT */) {
            throw new CallStateException(
                CallStateException.ERROR_POWER_OFF,
                "cannot dial voice call in airplane mode");