diff options
| author | Danesh M <daneshm90@gmail.com> | 2016-03-21 13:56:22 -0700 |
|---|---|---|
| committer | Danesh M <daneshm90@gmail.com> | 2016-03-21 13:57:12 -0700 |
| commit | 1cfc5375a9c1e27b188c3659610dbec655067cf6 (patch) | |
| tree | 156f4fdc7a3ea5d7e047cdf97b5fd853cbbc22b6 /src/com/android/settings/privacyguard | |
| parent | 6207c8769fa77a0cb0c36aec4f7197c8ff9a43e7 (diff) | |
| download | packages_apps_Settings-1cfc5375a9c1e27b188c3659610dbec655067cf6.tar.gz packages_apps_Settings-1cfc5375a9c1e27b188c3659610dbec655067cf6.tar.bz2 packages_apps_Settings-1cfc5375a9c1e27b188c3659610dbec655067cf6.zip | |
Settings : Fix default privacy guard preference
Ensure we write to the correct table.
CYNGNOS-2264
Change-Id: I1260cf665080631e3e2ec19b371a79eee273c6d2
Diffstat (limited to 'src/com/android/settings/privacyguard')
| -rw-r--r-- | src/com/android/settings/privacyguard/PrivacyGuardPrefs.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/privacyguard/PrivacyGuardPrefs.java b/src/com/android/settings/privacyguard/PrivacyGuardPrefs.java index d2417a352..060e61798 100644 --- a/src/com/android/settings/privacyguard/PrivacyGuardPrefs.java +++ b/src/com/android/settings/privacyguard/PrivacyGuardPrefs.java @@ -55,7 +55,7 @@ public class PrivacyGuardPrefs extends SettingsPreferenceFragment implements mPrivacyGuardDefault = (SwitchPreference) findPreference(KEY_PRIVACY_GUARD_DEFAULT); mPrivacyGuardDefault.setOnPreferenceChangeListener(this); - mPrivacyGuardDefault.setChecked(Settings.Secure.getInt(getContentResolver(), + mPrivacyGuardDefault.setChecked(CMSettings.Secure.getInt(getContentResolver(), CMSettings.Secure.PRIVACY_GUARD_DEFAULT, 0) == 1); } @@ -75,7 +75,7 @@ public class PrivacyGuardPrefs extends SettingsPreferenceFragment implements public boolean onPreferenceChange(Preference preference, Object newValue) { if (preference == mPrivacyGuardDefault) { boolean value = (Boolean) newValue; - Settings.Secure.putInt(getContentResolver(), + CMSettings.Secure.putInt(getContentResolver(), CMSettings.Secure.PRIVACY_GUARD_DEFAULT, value ? 1 : 0); return true; } |
