diff options
author | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2016-12-13 02:19:07 +0100 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2016-12-13 02:19:07 +0100 |
commit | d6bff7568aa36b899d0c986c2586c3838da6615b (patch) | |
tree | 171a31878ae35b018e009dcd883f648af4189838 /src/com/android/settings/privacyguard/PrivacyGuardPrefs.java | |
parent | cf8985887463fbf8236be3b3442ed793aa0085cb (diff) | |
parent | 8fa03070ba29d4dbdbc0cbe4c6b992e3d69a5371 (diff) | |
download | packages_apps_Settings-d6bff7568aa36b899d0c986c2586c3838da6615b.zip packages_apps_Settings-d6bff7568aa36b899d0c986c2586c3838da6615b.tar.gz packages_apps_Settings-d6bff7568aa36b899d0c986c2586c3838da6615b.tar.bz2 |
Merge branch 'cm-13.0' of https://github.com/CyanogenMod/android_packages_apps_Settings into replicant-6.0
Diffstat (limited to 'src/com/android/settings/privacyguard/PrivacyGuardPrefs.java')
-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 d2417a3..060e617 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; } |