diff options
author | Irfan Sheriff <isheriff@google.com> | 2011-01-11 15:39:16 -0800 |
---|---|---|
committer | Irfan Sheriff <isheriff@google.com> | 2011-01-11 15:39:16 -0800 |
commit | 7f9413911d16d38484adbce0c786f39146612196 (patch) | |
tree | 4069245b91ae45a1d256d148e23474c6a524d97f /src | |
parent | c961f0ac0b95ae563b03bd724a1f76223b0a5c85 (diff) | |
download | packages_apps_settings-7f9413911d16d38484adbce0c786f39146612196.zip packages_apps_settings-7f9413911d16d38484adbce0c786f39146612196.tar.gz packages_apps_settings-7f9413911d16d38484adbce0c786f39146612196.tar.bz2 |
Change wifi sleep policy
Keep wifi sleep policy as never when charged as long as
user has not changed the settings
Bug: 3038345
Change-Id: I37548984698dd3dd407785544d7b418439ed95d0
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/wifi/AdvancedSettings.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/settings/wifi/AdvancedSettings.java b/src/com/android/settings/wifi/AdvancedSettings.java index 1968eb0..74948f0 100644 --- a/src/com/android/settings/wifi/AdvancedSettings.java +++ b/src/com/android/settings/wifi/AdvancedSettings.java @@ -66,7 +66,8 @@ public class AdvancedSettings extends SettingsPreferenceFragment ListPreference pref = (ListPreference) findPreference(KEY_SLEEP_POLICY); pref.setOnPreferenceChangeListener(this); int value = Settings.System.getInt(getContentResolver(), - Settings.System.WIFI_SLEEP_POLICY, Settings.System.WIFI_SLEEP_POLICY_DEFAULT); + Settings.System.WIFI_SLEEP_POLICY, + Settings.System.WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED); pref.setValue(String.valueOf(value)); pref = (ListPreference) findPreference(KEY_FREQUENCY_BAND); |