Merge "Add flag to skip restoring network seletion." into gingerbread
This commit is contained in:
@@ -352,4 +352,8 @@
|
|||||||
|
|
||||||
<!-- Enables SIP on WIFI only -->
|
<!-- Enables SIP on WIFI only -->
|
||||||
<bool name="config_sip_wifi_only">false</bool>
|
<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>
|
</resources>
|
||||||
|
|||||||
@@ -358,8 +358,14 @@ final class GsmServiceStateTracker extends ServiceStateTracker {
|
|||||||
EVENT_SIM_RECORDS_LOADED, null);
|
EVENT_SIM_RECORDS_LOADED, null);
|
||||||
mNeedToRegForSimLoaded = false;
|
mNeedToRegForSimLoaded = false;
|
||||||
}
|
}
|
||||||
// restore the previous network selection.
|
|
||||||
phone.restoreSavedNetworkSelection(null);
|
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();
|
pollState();
|
||||||
// Signal strength polling stops when radio is off
|
// Signal strength polling stops when radio is off
|
||||||
queueNextSignalStrengthPoll();
|
queueNextSignalStrengthPoll();
|
||||||
|
|||||||
Reference in New Issue
Block a user