summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/xml/privacy_guard_prefs.xml2
-rw-r--r--src/com/android/settings/privacyguard/PrivacyGuardPrefs.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/res/xml/privacy_guard_prefs.xml b/res/xml/privacy_guard_prefs.xml
index 2cc82c1..7b60a7c 100644
--- a/res/xml/privacy_guard_prefs.xml
+++ b/res/xml/privacy_guard_prefs.xml
@@ -17,7 +17,7 @@
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
- <CheckBoxPreference
+ <SwitchPreference
android:key="privacy_guard_default"
android:title="@string/privacy_guard_default_title"
android:summary="@string/privacy_guard_default_summary"
diff --git a/src/com/android/settings/privacyguard/PrivacyGuardPrefs.java b/src/com/android/settings/privacyguard/PrivacyGuardPrefs.java
index 0f45d98..d301599 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(),