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

Commit 59986fee authored by Wink Saville's avatar Wink Saville
Browse files

Remap NONE to UNKNOWN on GENERIC_FAILURES for SETUP_DATA_CALL. DO NOT MERGE.

Bug: 9040003
Change-Id: I749d502529fc5542b910f4e49460730070b3e4b9
parent e188b658
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1329,6 +1329,13 @@ public final class DataConnection extends StateMachine {
                        if (ar.exception == null) {
                            int rilFailCause = ((int[]) (ar.result))[0];
                            cause = DcFailCause.fromInt(rilFailCause);
                            if (cause == DcFailCause.NONE) {
                                if (DBG) {
                                    log("DcActivatingState msg.what=EVENT_GET_LAST_FAIL_DONE"
                                            + " BAD: error was NONE, change to UNKNOWN");
                                }
                                cause = DcFailCause.UNKNOWN;
                            }
                        }
                        mDcFailCause = cause;