diff options
Diffstat (limited to 'src/org/thialfihar/android/apg/PreferencesActivity.java')
-rw-r--r-- | src/org/thialfihar/android/apg/PreferencesActivity.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/org/thialfihar/android/apg/PreferencesActivity.java b/src/org/thialfihar/android/apg/PreferencesActivity.java index 6e7e6f657..c226a8b2a 100644 --- a/src/org/thialfihar/android/apg/PreferencesActivity.java +++ b/src/org/thialfihar/android/apg/PreferencesActivity.java @@ -37,6 +37,7 @@ public class PreferencesActivity extends PreferenceActivity { private IntegerListPreference mMessageCompression = null; private IntegerListPreference mFileCompression = null; private CheckBoxPreference mAsciiArmour = null; + private CheckBoxPreference mForceV3Signatures = null; private Preferences mPreferences; @Override @@ -210,6 +211,18 @@ public class PreferencesActivity extends PreferenceActivity { return false; } }); + + mForceV3Signatures = (CheckBoxPreference) findPreference(Constants.pref.force_v3_signatures); + mForceV3Signatures.setChecked(mPreferences.getForceV3Signatures()); + mForceV3Signatures.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() + { + public boolean onPreferenceChange(Preference preference, Object newValue) + { + mForceV3Signatures.setChecked((Boolean)newValue); + mPreferences.setForceV3Signatures((Boolean)newValue); + return false; + } + }); } } |