Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc1bd4a8 authored by Irfan Sheriff's avatar Irfan Sheriff Committed by Android Git Automerger
Browse files

am 739f6bc6: Keep never as the default wifi sleep settings

* commit '739f6bc6':
  Keep never as the default wifi sleep settings
parents 9fecc19f 739f6bc6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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