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

Commit 87dee124 authored by Andalam Parthasarathi's avatar Andalam Parthasarathi Committed by Gerrit - the friendly Code Review server
Browse files

Add mapping string for call reject cause code 26.

Mapping string for the specified disconnect cause.
Show a toast string "non-selected user clearing"
for cause code 26

Change-Id: If11852d6a4ea27d4279e1204909bbfc0b9aa41b0
CRs-Fixed: 801884
parent 98836f89
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -241,6 +241,8 @@ public class DisconnectCause {
    /** EMERGENCY call failed with permanent fail cause */
    public static final int EMERGENCY_PERM_FAILURE         = 97;

    public static final int NON_SELECTED_USER_CLEARING = 98;


    //*********************************************************************************************
    // When adding a disconnect type:
@@ -250,14 +252,14 @@ public class DisconnectCause {
    // 4) Update toString() with the newly added disconnect type.
    // 5) Update android.telecom.DisconnectCauseUtil with any mappings to a telecom.DisconnectCause.
    //
    // NextId: 98
    // NextId: 99
    //*********************************************************************************************

    /** Smallest valid value for call disconnect codes. */
    public static final int MINIMUM_VALID_VALUE = NOT_DISCONNECTED;

    /** Largest valid value for call disconnect codes. */
    public static final int MAXIMUM_VALID_VALUE = EMERGENCY_PERM_FAILURE;
    public static final int MAXIMUM_VALID_VALUE = NON_SELECTED_USER_CLEARING;

    /** Private constructor to avoid class instantiation. */
    private DisconnectCause() {
@@ -365,6 +367,8 @@ public class DisconnectCause {
            return "IMS_MERGED_SUCCESSFULLY";
        case CDMA_ALREADY_ACTIVATED:
            return "CDMA_ALREADY_ACTIVATED";
        case NON_SELECTED_USER_CLEARING:
            return "NON_SELECTED_USER_CLEARING";
        case HO_NOT_FEASIBLE:
            return "HO_NOT_FEASIBLE";
        case NO_CIRCUIT_AVAIL: