From d3c5e1eca12f4ca618e3f671dc6fae48307ec895 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Fri, 6 Jan 2012 14:07:57 -0500 Subject: Allow disabling network stats support in a resource overlay Bug: 5771240 Signed-off-by: Mike Lockwood --- packages/SettingsProvider/res/values/defaults.xml | 1 + .../src/com/android/providers/settings/DatabaseHelper.java | 3 +++ 2 files changed, 4 insertions(+) (limited to 'packages/SettingsProvider') 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 @@ true 1 + true true false true 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(); } -- cgit v1.1