Loading wifi/java/android/net/wifi/WifiWatchdogStateMachine.java +8 −9 Original line number Diff line number Diff line Loading @@ -345,13 +345,6 @@ public class WifiWatchdogStateMachine extends StateMachine { // watchdog in an enabled state putSettingsGlobalBoolean(contentResolver, Settings.Global.WIFI_WATCHDOG_ON, true); // disable poor network avoidance if (sWifiOnly) { logd("Disabling poor network avoidance for wi-fi only device"); putSettingsGlobalBoolean(contentResolver, Settings.Global.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED, false); } WifiWatchdogStateMachine wwsm = new WifiWatchdogStateMachine(context); wwsm.start(); return wwsm; Loading Loading @@ -441,8 +434,14 @@ public class WifiWatchdogStateMachine extends StateMachine { private void updateSettings() { if (DBG) logd("Updating secure settings"); // disable poor network avoidance if (sWifiOnly) { logd("Disabling poor network avoidance for wi-fi only device"); mPoorNetworkDetectionEnabled = false; } else { mPoorNetworkDetectionEnabled = getSettingsGlobalBoolean(mContentResolver, Settings.Global.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED, true); Settings.Global.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED, false); } } /** Loading Loading
wifi/java/android/net/wifi/WifiWatchdogStateMachine.java +8 −9 Original line number Diff line number Diff line Loading @@ -345,13 +345,6 @@ public class WifiWatchdogStateMachine extends StateMachine { // watchdog in an enabled state putSettingsGlobalBoolean(contentResolver, Settings.Global.WIFI_WATCHDOG_ON, true); // disable poor network avoidance if (sWifiOnly) { logd("Disabling poor network avoidance for wi-fi only device"); putSettingsGlobalBoolean(contentResolver, Settings.Global.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED, false); } WifiWatchdogStateMachine wwsm = new WifiWatchdogStateMachine(context); wwsm.start(); return wwsm; Loading Loading @@ -441,8 +434,14 @@ public class WifiWatchdogStateMachine extends StateMachine { private void updateSettings() { if (DBG) logd("Updating secure settings"); // disable poor network avoidance if (sWifiOnly) { logd("Disabling poor network avoidance for wi-fi only device"); mPoorNetworkDetectionEnabled = false; } else { mPoorNetworkDetectionEnabled = getSettingsGlobalBoolean(mContentResolver, Settings.Global.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED, true); Settings.Global.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED, false); } } /** Loading