summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-09-25 17:02:26 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-25 17:03:11 -0700
commitb32e221699201cb647beae3fe0a1771fd5a41cf4 (patch)
tree54d5f76a31728976ba75e590c077cefc1448ac82 /wifi
parent0a52088e58a6ddea0966ba9cd2fbc7bd3e23809a (diff)
parentbf6f6f9de72c9fd15e6bda9f228c05a9b37d6324 (diff)
downloadframeworks_base-b32e221699201cb647beae3fe0a1771fd5a41cf4.zip
frameworks_base-b32e221699201cb647beae3fe0a1771fd5a41cf4.tar.gz
frameworks_base-b32e221699201cb647beae3fe0a1771fd5a41cf4.tar.bz2
Merge changes I332f020f,I632648ac into jb-mr1-dev
* changes: Update references to migrated global settings. Handle user switched for settings changes.
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/WifiStateMachine.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateMachine.java b/wifi/java/android/net/wifi/WifiStateMachine.java
index 4aa092b..e7927ae 100644
--- a/wifi/java/android/net/wifi/WifiStateMachine.java
+++ b/wifi/java/android/net/wifi/WifiStateMachine.java
@@ -1060,8 +1060,8 @@ public class WifiStateMachine extends StateMachine {
*/
public void setCountryCode(String countryCode, boolean persist) {
if (persist) {
- Settings.Secure.putString(mContext.getContentResolver(),
- Settings.Secure.WIFI_COUNTRY_CODE,
+ Settings.Global.putString(mContext.getContentResolver(),
+ Settings.Global.WIFI_COUNTRY_CODE,
countryCode);
}
sendMessage(obtainMessage(CMD_SET_COUNTRY_CODE, countryCode));
@@ -1318,8 +1318,8 @@ public class WifiStateMachine extends StateMachine {
* Set the country code from the system setting value, if any.
*/
private void setCountryCode() {
- String countryCode = Settings.Secure.getString(mContext.getContentResolver(),
- Settings.Secure.WIFI_COUNTRY_CODE);
+ String countryCode = Settings.Global.getString(mContext.getContentResolver(),
+ Settings.Global.WIFI_COUNTRY_CODE);
if (countryCode != null && !countryCode.isEmpty()) {
setCountryCode(countryCode, false);
} else {
@@ -1609,8 +1609,8 @@ public class WifiStateMachine extends StateMachine {
}
private int getMaxDhcpRetries() {
- return Settings.Secure.getInt(mContext.getContentResolver(),
- Settings.Secure.WIFI_MAX_DHCP_RETRY_COUNT,
+ return Settings.Global.getInt(mContext.getContentResolver(),
+ Settings.Global.WIFI_MAX_DHCP_RETRY_COUNT,
DEFAULT_MAX_DHCP_RETRIES);
}