Fix constant intent request code

only one passkey was used, even if the users selected another one for the same relying party.
This commit is contained in:
cali-95
2025-08-24 18:43:36 +02:00
committed by J-Jamet
parent 736cafbcc2
commit b4de7afe77

View File

@@ -342,7 +342,7 @@ class PasskeyLauncherActivity : DatabaseModeActivity() {
): PendingIntent? {
return PendingIntent.getActivity(
context,
Math.random().toInt(),
(Math.random() * Integer.MAX_VALUE).toInt(),
Intent(context, PasskeyLauncherActivity::class.java).apply {
addSpecialMode(specialMode)
addTypeMode(TypeMode.PASSKEY)