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

Commit 197f509e authored by Sanket Padawe's avatar Sanket Padawe
Browse files

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

Bug: 19165700
Change-Id: I995308853b04db29e76e87303beec02ff32f231e
parent 45736edd
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.");