mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2026-04-11 08:48:16 +02:00
Fix a crash when parsing long key IDs (#959)
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
(cherry picked from commit fbd84fde3a)
This commit is contained in:
parent
4c5341834d
commit
dc3fcbdc8e
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue