Browse files

Fix restoring network mode preference on reboot

When a user sets the option to use only 2G networks (for GSM networks) or its
equivalent for CDMA networks, each reboot erases that setting. That forces
the user to re-select the same option after each boot.
This (very simple) patch fixes it.

Ported from CM9:

Change-Id: I7ec9e155fed9f57934d7a73936f2bf425c8297fe
  • Loading branch information...
joaoventura authored and WoH committed Jan 18, 2013
1 parent 824ce12 commit 197caa7432579e46a6cf1d6fd31777f73961f350
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/java/com/android/internal/telephony/
@@ -624,6 +624,7 @@ public RIL(Context context, int preferredNetworkType, int cdmaSubscription) {
mCdmaSubscription = cdmaSubscription;
mPreferredNetworkType = preferredNetworkType;
+ mSetPreferredNetworkType = preferredNetworkType;
mPhoneType = RILConstants.NO_PHONE;
PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE);

0 comments on commit 197caa7

Please sign in to comment.