diff options
| author | nickdoherty81 <nickdoh81@gmail.com> | 2015-01-05 00:07:56 -0500 |
|---|---|---|
| committer | Roman Birg <roman@cyngn.com> | 2015-11-03 12:21:36 -0800 |
| commit | f788ff0f99b08b07bc3ec3426726b2a78649db39 (patch) | |
| tree | c6fa2eed4f398a8f7f200302f024bb44f798b2a2 /src/com/android/settings/privacyguard | |
| parent | 0551bfe0f25d59cb37bad31d58fc1e1c7e711abe (diff) | |
| download | packages_apps_Settings-f788ff0f99b08b07bc3ec3426726b2a78649db39.tar.gz packages_apps_Settings-f788ff0f99b08b07bc3ec3426726b2a78649db39.tar.bz2 packages_apps_Settings-f788ff0f99b08b07bc3ec3426726b2a78649db39.zip | |
Check boxes to Switches in PrivacyGuardPerfs
Change-Id: I329df30a6a095a6a5f5829d8b627b00769e18685
Diffstat (limited to 'src/com/android/settings/privacyguard')
| -rw-r--r-- | src/com/android/settings/privacyguard/PrivacyGuardPrefs.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/settings/privacyguard/PrivacyGuardPrefs.java b/src/com/android/settings/privacyguard/PrivacyGuardPrefs.java index 0f45d982f..d3015998a 100644 --- a/src/com/android/settings/privacyguard/PrivacyGuardPrefs.java +++ b/src/com/android/settings/privacyguard/PrivacyGuardPrefs.java @@ -19,10 +19,10 @@ package com.android.settings.privacyguard; import android.app.Activity; import android.content.Context; import android.os.Bundle; -import android.preference.CheckBoxPreference; import android.preference.Preference; import android.preference.Preference.OnPreferenceChangeListener; import android.preference.PreferenceScreen; +import android.preference.SwitchPreference; import android.provider.Settings; import android.provider.Settings.SettingNotFoundException; import android.view.LayoutInflater; @@ -43,7 +43,7 @@ public class PrivacyGuardPrefs extends SettingsPreferenceFragment implements private static final String KEY_PRIVACY_GUARD_DEFAULT = "privacy_guard_default"; - private CheckBoxPreference mPrivacyGuardDefault; + private SwitchPreference mPrivacyGuardDefault; @Override public void onCreate(Bundle savedInstanceState) { @@ -52,7 +52,7 @@ public class PrivacyGuardPrefs extends SettingsPreferenceFragment implements addPreferencesFromResource(R.xml.privacy_guard_prefs); PreferenceScreen prefSet = getPreferenceScreen(); - mPrivacyGuardDefault = (CheckBoxPreference) findPreference(KEY_PRIVACY_GUARD_DEFAULT); + mPrivacyGuardDefault = (SwitchPreference) findPreference(KEY_PRIVACY_GUARD_DEFAULT); mPrivacyGuardDefault.setOnPreferenceChangeListener(this); mPrivacyGuardDefault.setChecked(Settings.Secure.getInt(getContentResolver(), |
