mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 22:05:19 +00:00
Fix a crash when parsing long key IDs (#959)
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user