summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Irfan Sheriff <isheriff@google.com> 2011-01-28 16:43:12 -0800
committer Irfan Sheriff <isheriff@google.com> 2011-01-28 17:01:29 -0800
commit739f6bc675c0caa11a1d46b18de24e6c884f723a (patch)
tree253a4925628285060141b1285094285065988a8a
parent430dde3ef3b9b82bfca4ae51e225c6ad88aee514 (diff)
Keep never as the default wifi sleep settings
Bug: 3404049 Change-Id: I824b8cb7b28223cfb4eb89cabc7cb237a4e1e6db
-rw-r--r--services/java/com/android/server/WifiService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/java/com/android/server/WifiService.java b/services/java/com/android/server/WifiService.java
index cf072392cbe1..d2f2ec701910 100644
--- a/services/java/com/android/server/WifiService.java
+++ b/services/java/com/android/server/WifiService.java
@@ -955,10 +955,10 @@ public class WifiService extends IWifiManager.Stub {
* @see #shouldDeviceStayAwake(int, int)
*/
private boolean shouldWifiStayAwake(int stayAwakeConditions, int pluggedType) {
- //Never sleep when plugged in as long as the user has not changed the settings
+ //Never sleep as long as the user has not changed the settings
int wifiSleepPolicy = Settings.System.getInt(mContext.getContentResolver(),
Settings.System.WIFI_SLEEP_POLICY,
- Settings.System.WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED);
+ Settings.System.WIFI_SLEEP_POLICY_NEVER);
if (wifiSleepPolicy == Settings.System.WIFI_SLEEP_POLICY_NEVER) {
// Never sleep