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

Commit 056efe7d authored by Sneh Bansal's avatar Sneh Bansal Committed by android-build-merger
Browse files

Merge "Add extra data to auto network selection message."

am: 5c5d3d83

Change-Id: I5fd560e8a8c763b8d5675e52fc2e1f51186c2dd6
parents df1d951a 5c5d3d83
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -226,6 +226,9 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {
    // Key used to read/write "disable DNS server check" pref (used for testing)
    private static final String DNS_SERVER_CHECK_DISABLED_KEY = "dns_server_check_disabled_key";

    // Integer used to let the calling application know that the we are ignoring auto mode switch.
    private static final int ALREADY_IN_AUTO_SELECTION = 1;

    /**
     * This method is invoked when the Phone exits Emergency Callback Mode.
     */
@@ -1205,6 +1208,11 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {
            mCi.setNetworkSelectionModeAutomatic(msg);
        } else {
            Rlog.d(LOG_TAG, "setNetworkSelectionModeAutomatic - already auto, ignoring");
            // let the calling application know that the we are ignoring automatic mode switch.
            if (nsm.message != null) {
                nsm.message.arg1 = ALREADY_IN_AUTO_SELECTION;
            }

            ar.userObj = nsm;
            handleSetSelectNetwork(ar);
        }