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

Commit 59f57de1 authored by Youming Ye's avatar Youming Ye Committed by android-build-merger
Browse files

Merge "Fix emergency call fails in APM ON"

am: b657863b

Change-Id: I06dd4dad570321929d33412bf10c3c9f04caea85
parents fdd99cf9 b657863b
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -617,11 +617,10 @@ public class GsmCdmaCallTracker extends CallTracker {
     * @throws CallStateException
     * @throws CallStateException
     */
     */
    public void checkForDialIssues() throws CallStateException {
    public void checkForDialIssues() throws CallStateException {
        int serviceState = mPhone.getServiceState().getState();
        String disableCall = SystemProperties.get(
        String disableCall = SystemProperties.get(
                TelephonyProperties.PROPERTY_DISABLE_CALL, "false");
                TelephonyProperties.PROPERTY_DISABLE_CALL, "false");


        if (serviceState == ServiceState.STATE_POWER_OFF) {
        if (!mCi.getRadioState().isOn()) {
            throw new CallStateException(CallStateException.ERROR_POWER_OFF,
            throw new CallStateException(CallStateException.ERROR_POWER_OFF,
                    "Modem not powered");
                    "Modem not powered");
        }
        }