diff options
author | Fabian Henneke <FabianHenneke@users.noreply.github.com> | 2020-07-23 13:54:53 +0200 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-07-23 21:38:10 +0530 |
commit | dc3fcbdc8e8a81f48be6f33b5eb1cb54b8ef56a0 (patch) | |
tree | f5e808efa60aa3d3f454533f942021033871ecd2 /app/src/main/java | |
parent | 4c5341834da909e5567defd747e7a674bd8e82ec (diff) |
Fix a crash when parsing long key IDs (#959)
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
(cherry picked from commit fbd84fde3a25d23cbf51fe0cd609ce9bd13836cc)
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt | 4 |
1 files changed, 2 insertions, 2 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 6cacf4b9..ee57acf8 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt @@ -257,8 +257,8 @@ class PasswordCreationActivity : BasePgpActivity(), OpenPgpServiceConnection.OnB it.matches("[a-fA-F0-9]{16}".toRegex()) } if (maybeLongKeyId != null) { - val keyId = maybeLongKeyId.toULong() - return GpgIdentifier.KeyId(maybeLongKeyId.toLong()) + val keyId = maybeLongKeyId.toULong(16) + return GpgIdentifier.KeyId(keyId.toLong()) } // Match fingerprints: |