summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/cmstats
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2015-04-23 15:44:18 -0700
committerAdnan Begovic <adnan@cyngn.com>2015-11-23 14:26:12 -0800
commitfb08905d1d6a6d09eff24c1538343e61f944d340 (patch)
tree79d11f0fe0320b9ba6cbf03346bfdbff2e0be1c7 /src/com/android/settings/cmstats
parent85543a9c863421dfe4b8ff9adee6cb4c951a392e (diff)
downloadpackages_apps_Settings-fb08905d1d6a6d09eff24c1538343e61f944d340.zip
packages_apps_Settings-fb08905d1d6a6d09eff24c1538343e61f944d340.tar.gz
packages_apps_Settings-fb08905d1d6a6d09eff24c1538343e61f944d340.tar.bz2
Settings: Map to new Secure Setting for Stats Collection.
Change-Id: I7de094ed9d0621f8744f8fb6236ae0085832d7ca
Diffstat (limited to 'src/com/android/settings/cmstats')
-rw-r--r--src/com/android/settings/cmstats/Utilities.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/settings/cmstats/Utilities.java b/src/com/android/settings/cmstats/Utilities.java
index 4d4ff48..7af505c 100644
--- a/src/com/android/settings/cmstats/Utilities.java
+++ b/src/com/android/settings/cmstats/Utilities.java
@@ -82,8 +82,8 @@ public class Utilities {
* @return Whether or not stats collection is enabled.
*/
public static boolean isStatsCollectionEnabled(Context context) {
- return Settings.System.getInt(context.getContentResolver(),
- Settings.System.STATS_COLLECTION, 1) != 0;
+ return Settings.Secure.getInt(context.getContentResolver(),
+ Settings.Secure.STATS_COLLECTION, 1) != 0;
}
/**
@@ -93,7 +93,7 @@ public class Utilities {
*/
public static void setStatsCollectionEnabled(Context context, boolean enabled) {
int enable = (enabled) ? 1 : 0;
- Settings.System.putInt(context.getContentResolver(),
- Settings.System.STATS_COLLECTION, enable);
+ Settings.Secure.putInt(context.getContentResolver(),
+ Settings.Secure.STATS_COLLECTION, enable);
}
}