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

Commit af4e792e authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Android Git Automerger
Browse files

am 920049f8: am 089df9db: Merge "Let some messages get processed in emergency...

am 920049f8: am 089df9db: Merge "Let some messages get processed in emergency state" into mnc-dr-dev

* commit '920049f8':
  Let some messages get processed in emergency state
parents 491ba0a4 920049f8
Loading
Loading
Loading
Loading
+15 −1
Original line number Diff line number Diff line
@@ -170,11 +170,25 @@ public class DcSwitchStateMachine extends StateMachine {
                    break;
                }

                default: {
                // explicitly call out the messages we must defer
                // anything not listed falls through to the default state
                case DcSwitchAsyncChannel.REQ_CONNECT:
                case DcSwitchAsyncChannel.REQ_RETRY_CONNECT:
                case DcSwitchAsyncChannel.REQ_DISCONNECT_ALL:
                case DcSwitchAsyncChannel.EVENT_DATA_ATTACHED:
                case DcSwitchAsyncChannel.EVENT_DATA_DETACHED: {
                    log("EmergencyState: deferMessage msg.what=0x" + Integer.toHexString(msg.what));
                    deferMessage(msg);
                    break;
                }

                default: {
                    if (VDBG) {
                        log("EmergencyState: nothandled msg.what=0x" +
                                Integer.toHexString(msg.what));
                    }
                    return NOT_HANDLED;
                }
            }

            return HANDLED;