summaryrefslogtreecommitdiff
path: root/openpgp-ktx/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp-ktx/src/main')
-rw-r--r--openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/AutocryptPeerUpdate.kt2
-rw-r--r--openpgp-ktx/src/main/java/org/openintents/openpgp/OpenPgpSignatureResult.kt4
2 files changed, 3 insertions, 3 deletions
diff --git a/openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/AutocryptPeerUpdate.kt b/openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/AutocryptPeerUpdate.kt
index 6690fe35..c6bd573d 100644
--- a/openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/AutocryptPeerUpdate.kt
+++ b/openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/AutocryptPeerUpdate.kt
@@ -29,7 +29,7 @@ public class AutocryptPeerUpdate() : Parcelable {
private constructor(source: Parcel, version: Int) : this() {
keyData = source.createByteArray()
effectiveDate = if (source.readInt() != 0) Date(source.readLong()) else null
- preferEncrypt = PreferEncrypt.values()[source.readInt()]
+ preferEncrypt = PreferEncrypt.entries[source.readInt()]
}
public fun createAutocryptPeerUpdate(keyData: ByteArray?, timestamp: Date?): AutocryptPeerUpdate {
diff --git a/openpgp-ktx/src/main/java/org/openintents/openpgp/OpenPgpSignatureResult.kt b/openpgp-ktx/src/main/java/org/openintents/openpgp/OpenPgpSignatureResult.kt
index a1a4a81b..f4af90ba 100644
--- a/openpgp-ktx/src/main/java/org/openintents/openpgp/OpenPgpSignatureResult.kt
+++ b/openpgp-ktx/src/main/java/org/openintents/openpgp/OpenPgpSignatureResult.kt
@@ -60,7 +60,7 @@ public class OpenPgpSignatureResult : Parcelable {
// backward compatibility for this exact version
if (version > 2) {
senderStatusResult =
- readEnumWithNullAndFallback(source, SenderStatusResult.values(), SenderStatusResult.UNKNOWN)
+ readEnumWithNullAndFallback(source, SenderStatusResult.entries, SenderStatusResult.UNKNOWN)
confirmedUserIds = source.createStringArrayList()
} else {
senderStatusResult = SenderStatusResult.UNKNOWN
@@ -74,7 +74,7 @@ public class OpenPgpSignatureResult : Parcelable {
}
autocryptPeerentityResult =
if (version > 4) {
- readEnumWithNullAndFallback(source, AutocryptPeerResult.values(), null)
+ readEnumWithNullAndFallback(source, AutocryptPeerResult.entries, null)
} else {
null
}