aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/thialfihar/android/apg/PreferencesActivity.java
diff options
context:
space:
mode:
authorThialfihar <thialfihar@gmail.com>2010-07-27 22:41:50 +0000
committerThialfihar <thialfihar@gmail.com>2010-07-27 22:41:50 +0000
commitb13eb7dbf3d342e3d63d7718c1f66b082f055540 (patch)
treef08b1b04cb7366b8b357777464d120db20e39980 /src/org/thialfihar/android/apg/PreferencesActivity.java
parent20f7755b2c2395431f059ec14ddc6c1d2359e20d (diff)
downloadopen-keychain-b13eb7dbf3d342e3d63d7718c1f66b082f055540.tar.gz
open-keychain-b13eb7dbf3d342e3d63d7718c1f66b082f055540.tar.bz2
open-keychain-b13eb7dbf3d342e3d63d7718c1f66b082f055540.zip
added a "force V3 signature" setting similar to the GPG version, hopefully making APG useful for some special cases where that is needed
Update issue 39 Two new strings: <string name="section_advanced">Advanced</string> <string name="label_forceV3Signature">Force V3 Signatures</string> "V3" is just "version 3" and should remain untranslated, both strings can be seen at the bottom of the preferences activity.
Diffstat (limited to 'src/org/thialfihar/android/apg/PreferencesActivity.java')
-rw-r--r--src/org/thialfihar/android/apg/PreferencesActivity.java13
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;
+ }
+ });
}
}