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

Commit 5de8cb01 authored by Sanket Padawe's avatar Sanket Padawe Committed by Android Git Automerger
Browse files

am 409cde85: Merge "Handle network change messages when phone tries to switch...

am 409cde85: Merge "Handle network change messages when phone tries to switch to GSM from CDMA." into lmp-mr1-dev

* commit '409cde85':
  Handle network change messages when phone tries to switch to GSM from CDMA.
parents 1e53b596 409cde85
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.");