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

Commit 409cde85 authored by Sanket Padawe's avatar Sanket Padawe Committed by Android (Google) Code Review
Browse files

Merge "Handle network change messages when phone tries to switch to GSM from...

Merge "Handle network change messages when phone tries to switch to GSM from CDMA." into lmp-mr1-dev
parents bccbea8d 197f509e
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -121,6 +121,17 @@ public class CDMALTEPhone extends CDMAPhone {
        AsyncResult ar;
        Message onComplete;

        // messages to be handled whether or not the phone is being destroyed
        // should only include messages which are being re-directed and do not use
        // resources of the phone being destroyed
        switch (msg.what) {
            // handle the select network completion callbacks.
            case EVENT_SET_NETWORK_MANUAL_COMPLETE:
            case EVENT_SET_NETWORK_AUTOMATIC_COMPLETE:
                super.handleMessage(msg);
                return;
        }

        if (!mIsTheCurrentActivePhone) {
            Rlog.e(LOG_TAG, "Received message " + msg +
                    "[" + msg.what + "] while being destroyed. Ignoring.");