mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-03 17:59:51 +02:00
Use prepared pending intent flags in the u2f implementation
This commit is contained in:
parent
ab1bcc0819
commit
0e2cc40f29
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ class NFCU2FManager (val parent: U2fManager, context: Context) {
|
||||||
context,
|
context,
|
||||||
PendingIntentIds.U2F_NFC_DISCOVERY,
|
PendingIntentIds.U2F_NFC_DISCOVERY,
|
||||||
Intent(nfcReceiverAction),
|
Intent(nfcReceiverAction),
|
||||||
PendingIntent.FLAG_MUTABLE
|
PendingIntentIds.PENDING_INTENT_FLAGS_ALLOW_MUTATION
|
||||||
)
|
)
|
||||||
|
|
||||||
val status: LiveData<NfcStatus> = if (nfcAdapter == null)
|
val status: LiveData<NfcStatus> = if (nfcAdapter == null)
|
||||||
|
|
|
@ -77,7 +77,7 @@ class UsbU2FManager (val parent: U2fManager, context: Context) {
|
||||||
context,
|
context,
|
||||||
PendingIntentIds.U2F_USB_RESPONSE,
|
PendingIntentIds.U2F_USB_RESPONSE,
|
||||||
Intent(permissionResponseAction),
|
Intent(permissionResponseAction),
|
||||||
PendingIntent.FLAG_MUTABLE
|
PendingIntentIds.PENDING_INTENT_FLAGS_ALLOW_MUTATION
|
||||||
)
|
)
|
||||||
|
|
||||||
private val permissionRequestManager = UsbPermissionRequestManager(sendRequest = {
|
private val permissionRequestManager = UsbPermissionRequestManager(sendRequest = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue