From 7475f2fb13f7f8b8e2bfbe48a58c2cca6b225392 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 30 Nov 2023 14:45:34 +0530 Subject: fix: replace `Enum.values()` with `Enum.entries` --- .../src/main/java/me/msfjarvis/openpgpktx/AutocryptPeerUpdate.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openpgp-ktx/src/main/java/me') 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 { -- cgit v1.2.3