diff options
author | Andrea Torlaschi <runnerway@gmail.com> | 2016-05-17 16:51:44 +0200 |
---|---|---|
committer | Andrea Torlaschi <runnerway@gmail.com> | 2016-05-17 16:51:44 +0200 |
commit | a2d2da90984a6cc4191d55d349372f1ac5d6259a (patch) | |
tree | 9220a03bfab5da6d764791f49966e5107e047a21 /OpenKeychain/src/main/java/org | |
parent | 320909f3ce6e10b18e7ffdb457825204c8a359d8 (diff) | |
download | open-keychain-a2d2da90984a6cc4191d55d349372f1ac5d6259a.tar.gz open-keychain-a2d2da90984a6cc4191d55d349372f1ac5d6259a.tar.bz2 open-keychain-a2d2da90984a6cc4191d55d349372f1ac5d6259a.zip |
Settings: change CheckBoxPreference to SwitchPreference
Diffstat (limited to 'OpenKeychain/src/main/java/org')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/SettingsActivity.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/SettingsActivity.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/SettingsActivity.java index 4fd327c8f..e71846577 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/SettingsActivity.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/SettingsActivity.java @@ -30,7 +30,6 @@ import android.content.Intent; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; -import android.preference.CheckBoxPreference; import android.preference.EditTextPreference; import android.preference.ListPreference; import android.preference.Preference; @@ -213,7 +212,7 @@ public class SettingsActivity extends AppCompatPreferenceActivity { }); initializePassphraseCacheSubs( - (CheckBoxPreference) findPreference(Constants.Pref.PASSPHRASE_CACHE_SUBS)); + (SwitchPreference) findPreference(Constants.Pref.PASSPHRASE_CACHE_SUBS)); } } @@ -592,7 +591,7 @@ public class SettingsActivity extends AppCompatPreferenceActivity { || super.isValidFragment(fragmentName); } - private static void initializePassphraseCacheSubs(final CheckBoxPreference mPassphraseCacheSubs) { + private static void initializePassphraseCacheSubs(final SwitchPreference mPassphraseCacheSubs) { mPassphraseCacheSubs.setChecked(sPreferences.getPassphraseCacheSubs()); mPassphraseCacheSubs.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() { public boolean onPreferenceChange(Preference preference, Object newValue) { |