aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openintents/openpgp/util/OpenPgpKeyPreference.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openintents/openpgp/util/OpenPgpKeyPreference.java')
-rw-r--r--src/main/java/org/openintents/openpgp/util/OpenPgpKeyPreference.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/org/openintents/openpgp/util/OpenPgpKeyPreference.java b/src/main/java/org/openintents/openpgp/util/OpenPgpKeyPreference.java
index e5bd8ea..6343285 100644
--- a/src/main/java/org/openintents/openpgp/util/OpenPgpKeyPreference.java
+++ b/src/main/java/org/openintents/openpgp/util/OpenPgpKeyPreference.java
@@ -145,6 +145,20 @@ public class OpenPgpKeyPreference extends Preference {
setAndPersist(newValue);
}
+ /**
+ * Public API
+ */
+ public void setValue(long keyId) {
+ setAndPersist(keyId);
+ }
+
+ /**
+ * Public API
+ */
+ public long getValue() {
+ return mKeyId;
+ }
+
private void setAndPersist(long newValue) {
mKeyId = newValue;