diff options
author | Fabian Henneke <FabianHenneke@users.noreply.github.com> | 2020-07-23 15:59:12 +0200 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-07-23 21:38:10 +0530 |
commit | 859da9d9141f15fe6d61a942458a3a10ce89b081 (patch) | |
tree | 48519bbc46b73a1032dd7fa0aa948ad3cf210b53 /app/src/main/java | |
parent | dc3fcbdc8e8a81f48be6f33b5eb1cb54b8ef56a0 (diff) |
Fix OpenPgpApi extra type confusion (#960)
(cherry picked from commit da167599d2d7f387daf62bbc51720577de30e7ad)
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |