diff options
author | Mike Lockwood <lockwood@google.com> | 2012-01-06 14:07:57 -0500 |
---|---|---|
committer | Mike Lockwood <lockwood@google.com> | 2012-02-10 14:44:08 -0800 |
commit | d3c5e1eca12f4ca618e3f671dc6fae48307ec895 (patch) | |
tree | afc27e8ac46bd85ce2db7bab77df813a03663115 /packages/SettingsProvider | |
parent | 9063154a793b0ab38b3c5992cbaed046427b4a82 (diff) | |
download | frameworks_base-d3c5e1eca12f4ca618e3f671dc6fae48307ec895.zip frameworks_base-d3c5e1eca12f4ca618e3f671dc6fae48307ec895.tar.gz frameworks_base-d3c5e1eca12f4ca618e3f671dc6fae48307ec895.tar.bz2 |
Allow disabling network stats support in a resource overlay
Bug: 5771240
Signed-off-by: Mike Lockwood <lockwood@google.com>
Diffstat (limited to 'packages/SettingsProvider')
-rw-r--r-- | packages/SettingsProvider/res/values/defaults.xml | 1 | ||||
-rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/packages/SettingsProvider/res/values/defaults.xml b/packages/SettingsProvider/res/values/defaults.xml index f7713aa..3beaac9 100644 --- a/packages/SettingsProvider/res/values/defaults.xml +++ b/packages/SettingsProvider/res/values/defaults.xml @@ -43,6 +43,7 @@ <bool name="assisted_gps_enabled">true</bool> <!-- 0 == mobile, 1 == wifi. --> <integer name="def_network_preference">1</integer> + <bool name="def_netstats_enabled">true</bool> <bool name="def_usb_mass_storage_enabled">true</bool> <bool name="def_wifi_on">false</bool> <bool name="def_networks_available_notification_on">true</bool> diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java index 3ebf44b..882aa66 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -1599,6 +1599,9 @@ public class DatabaseHelper extends SQLiteOpenHelper { loadBooleanSetting(stmt, Settings.Secure.DEVICE_PROVISIONED, R.bool.def_device_provisioned); + + loadBooleanSetting(stmt, Settings.Secure.NETSTATS_ENABLED, + R.bool.def_netstats_enabled); } finally { if (stmt != null) stmt.close(); } |