package com.peachpasswords.passkeys import android.app.PendingIntent import android.content.Context import android.content.Intent import com.peachpasswords.MainActivity import com.peachpasswords.PeachActions object PasskeyUnlockIntent { fun pendingIntent(context: Context): PendingIntent { val intent = Intent(context, MainActivity::class.java) .setAction(PeachActions.PASSKEY_UNLOCK) .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_SINGLE_TOP) return PendingIntent.getActivity( context, REQUEST_CODE, intent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE, ) } private const val REQUEST_CODE = 0x504b }