Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 859da9d

Browse files
FabianHennekemsfjarvis
authored andcommitted
Fix OpenPgpApi extra type confusion (#960)
(cherry picked from commit da16759)
1 parent dc3fcbd commit 859da9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ class PasswordCreationActivity : BasePgpActivity(), OpenPgpServiceConnection.OnB
313313
}
314314
val gpgIdentifierFileContent = gpgIdentifierFile.useLines { it.firstOrNull() } ?: ""
315315
when (val identifier = parseGpgIdentifier(gpgIdentifierFileContent)) {
316-
is GpgIdentifier.KeyId -> data.putExtra(OpenPgpApi.EXTRA_KEY_IDS, arrayOf(identifier.id))
316+
is GpgIdentifier.KeyId -> data.putExtra(OpenPgpApi.EXTRA_KEY_IDS, arrayOf(identifier.id).toLongArray())
317317
is GpgIdentifier.UserId -> data.putExtra(OpenPgpApi.EXTRA_USER_IDS, arrayOf(identifier.email))
318318
null -> {
319319
snackbar(message = resources.getString(R.string.invalid_gpg_id))

0 commit comments

Comments
 (0)