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

Commit fa8b4d34 authored by qingbiao.meng's avatar qingbiao.meng Committed by Qingbiao Meng
Browse files

Fix dial emergency call redial issue by China Unicom.

Dial emergency call like 112 use China Unicom card, and if wait
remote server end the call, then disconnect code will be 31(NORMAL_UNSPECIFIED),
this code will be treat as DisconnectCause.ERROR in telecom-service at last,
and cause redial in telecom-service.

To fix, I change it to DisconnectCause.OTHER.

Test: Build pass
parent 9d456cd9
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -273,6 +273,13 @@ public class DisconnectCause {
     * {@hide}
     */
    public static final int EMERGENCY_PERM_FAILURE = 64;

    /**
     * This cause is used to report a normal event only when no other cause in the normal class
     * applies.
     * {@hide}
     */
    public static final int NORMAL_UNSPECIFIED = 65;
    //*********************************************************************************************
    // When adding a disconnect type:
    // 1) Update toString() with the newly added disconnect type.
@@ -413,6 +420,8 @@ public class DisconnectCause {
            return "EMERGENCY_TEMP_FAILURE";
        case EMERGENCY_PERM_FAILURE:
            return "EMERGENCY_PERM_FAILURE";
        case NORMAL_UNSPECIFIED:
            return "NORMAL_UNSPECIFIED";
        default:
            return "INVALID: " + cause;
        }