aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org
diff options
context:
space:
mode:
authorAndrea Torlaschi <runnerway@gmail.com>2016-05-17 16:51:44 +0200
committerAndrea Torlaschi <runnerway@gmail.com>2016-05-17 16:51:44 +0200
commita2d2da90984a6cc4191d55d349372f1ac5d6259a (patch)
tree9220a03bfab5da6d764791f49966e5107e047a21 /OpenKeychain/src/main/java/org
parent320909f3ce6e10b18e7ffdb457825204c8a359d8 (diff)
downloadopen-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.java5
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) {