1package com.peachpasswords.passkeys23import android.app.PendingIntent4import android.content.Context5import android.content.Intent6import com.peachpasswords.MainActivity78object PasskeyUnlockIntent {9 fun pendingIntent(context: Context): PendingIntent {10 val intent = Intent(context, MainActivity::class.java)11 .setAction(ACTION_PASSKEY_UNLOCK)12 .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_SINGLE_TOP)13 return PendingIntent.getActivity(14 context,15 REQUEST_CODE,16 intent,17 PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE,18 )19 }2021 private const val ACTION_PASSKEY_UNLOCK = "com.peachpasswords.passkeys.ACTION_PASSKEY_UNLOCK"22 private const val REQUEST_CODE = 0x504b23}