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

Commit 35c4c211 authored by John Wang's avatar John Wang
Browse files

Add flag to skip restoring network seletion.

For bug 3045366.

Change-Id: I7ad9ff89b0a77df473b638ad917b363c42de5405
parent bbc80d34
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -352,4 +352,8 @@

    <!-- Enables SIP on WIFI only -->
    <bool name="config_sip_wifi_only">false</bool>

    <!-- Boolean indicating if restoring network selection should be skipped -->
    <!-- The restoring is handled by modem if it is true-->
    <bool translatable="false" name="skip_restoring_network_selection">false</bool>
</resources>
+8 −2
Original line number Diff line number Diff line
@@ -358,8 +358,14 @@ final class GsmServiceStateTracker extends ServiceStateTracker {
                            EVENT_SIM_RECORDS_LOADED, null);
                    mNeedToRegForSimLoaded = false;
                }

                boolean skipRestoringSelection = phone.getContext().getResources().getBoolean(
                        com.android.internal.R.bool.skip_restoring_network_selection);

                if (!skipRestoringSelection) {
                    // restore the previous network selection.
                    phone.restoreSavedNetworkSelection(null);
                }
                pollState();
                // Signal strength polling stops when radio is off
                queueNextSignalStrengthPoll();