am 0e0942c7: Merge "Default WiFi sleep policy setting"

* commit '0e0942c7209c758bc00939ae54059dc24bce3abb':
  Default WiFi sleep policy setting
This commit is contained in:
Jean-Baptiste Queru
2012-08-29 10:49:25 -07:00
committed by Android Git Automerger
2 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,8 @@
<bool name="def_netstats_enabled">true</bool>
<bool name="def_usb_mass_storage_enabled">true</bool>
<bool name="def_wifi_on">false</bool>
<!-- 0 == default, 1 == never while plugged, 2 == never -->
<integer name="def_wifi_sleep_policy">0</integer>
<bool name="def_networks_available_notification_on">true</bool>
<bool name="def_backup_enabled">false</bool>

View File

@ -1542,6 +1542,8 @@ public class DatabaseHelper extends SQLiteOpenHelper {
loadIntegerSetting(stmt, Settings.System.POINTER_SPEED,
R.integer.def_pointer_speed);
loadIntegerSetting(stmt, Settings.System.WIFI_SLEEP_POLICY,
R.integer.def_wifi_sleep_policy);
} finally {
if (stmt != null) stmt.close();
}