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

Commit 90344780 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Add disconnect cause when outgoing call fails due to ongoing OTASP prov.

Adding a new disconnect cause shown to the user when they attempt to place
a call when OTASP provisioning is in process.

Test: Manual with test intent.
Test: Added unit test.
Bug: 70843686
Change-Id: I5cecb79948c9467b4d297ac3ea06df6cc7fd41bd
parent f67ece13
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -342,6 +342,12 @@ public class DisconnectCause {
     */
    public static final int TOO_MANY_ONGOING_CALLS = 75;

    /**
     * Indicates that a new outgoing call cannot be placed because OTASP provisioning is currently
     * in process.
     */
    public static final int OTASP_PROVISIONING_IN_PROCESS = 76;

    //*********************************************************************************************
    // When adding a disconnect type:
    // 1) Update toString() with the newly added disconnect type.
@@ -505,6 +511,8 @@ public class DisconnectCause {
            return "CALLING_DISABLED";
        case TOO_MANY_ONGOING_CALLS:
            return "TOO_MANY_ONGOING_CALLS";
        case OTASP_PROVISIONING_IN_PROCESS:
            return "OTASP_PROVISIONING_IN_PROCESS";
        default:
            return "INVALID: " + cause;
        }