From 859da9d9141f15fe6d61a942458a3a10ce89b081 Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Thu, 23 Jul 2020 15:59:12 +0200 Subject: Fix OpenPgpApi extra type confusion (#960) (cherry picked from commit da167599d2d7f387daf62bbc51720577de30e7ad) --- app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt b/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt index ee57acf8..851dbaa1 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt @@ -313,7 +313,7 @@ class PasswordCreationActivity : BasePgpActivity(), OpenPgpServiceConnection.OnB } val gpgIdentifierFileContent = gpgIdentifierFile.useLines { it.firstOrNull() } ?: "" when (val identifier = parseGpgIdentifier(gpgIdentifierFileContent)) { - is GpgIdentifier.KeyId -> data.putExtra(OpenPgpApi.EXTRA_KEY_IDS, arrayOf(identifier.id)) + is GpgIdentifier.KeyId -> data.putExtra(OpenPgpApi.EXTRA_KEY_IDS, arrayOf(identifier.id).toLongArray()) is GpgIdentifier.UserId -> data.putExtra(OpenPgpApi.EXTRA_USER_IDS, arrayOf(identifier.email)) null -> { snackbar(message = resources.getString(R.string.invalid_gpg_id)) -- cgit v1.2.3