Loading src/java/com/android/internal/telephony/GsmCdmaPhone.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -1115,7 +1115,8 @@ public class GsmCdmaPhone extends Phone { // Check non-emergency voice CS call - shouldn't dial when POWER_OFF // 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 */ if (mSST != null && mSST.mSS.getState() == ServiceState.STATE_POWER_OFF /* CS POWER_OFF */ && !VideoProfile.isVideo(dialArgs.videoState) /* voice call */ && !VideoProfile.isVideo(dialArgs.videoState) /* voice call */ && !isEmergency /* non-emergency call */) { && !isEmergency /* non-emergency call */ && !(isUt && useImsForUt) /* not UT */) { throw new CallStateException( throw new CallStateException( CallStateException.ERROR_POWER_OFF, CallStateException.ERROR_POWER_OFF, "cannot dial voice call in airplane mode"); "cannot dial voice call in airplane mode"); Loading Loading
src/java/com/android/internal/telephony/GsmCdmaPhone.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -1115,7 +1115,8 @@ public class GsmCdmaPhone extends Phone { // Check non-emergency voice CS call - shouldn't dial when POWER_OFF // 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 */ if (mSST != null && mSST.mSS.getState() == ServiceState.STATE_POWER_OFF /* CS POWER_OFF */ && !VideoProfile.isVideo(dialArgs.videoState) /* voice call */ && !VideoProfile.isVideo(dialArgs.videoState) /* voice call */ && !isEmergency /* non-emergency call */) { && !isEmergency /* non-emergency call */ && !(isUt && useImsForUt) /* not UT */) { throw new CallStateException( throw new CallStateException( CallStateException.ERROR_POWER_OFF, CallStateException.ERROR_POWER_OFF, "cannot dial voice call in airplane mode"); "cannot dial voice call in airplane mode"); Loading