From e5b2d8350f65395bd18e7976bae7ebdf47a01c9a Mon Sep 17 00:00:00 2001 From: Alexander Shenshin Date: Tue, 14 May 2024 16:00:45 +0300 Subject: [PATCH] Clean up Android Auth prompt Signed-off-by: Alexander Shenshin --- .../reactnative/biometry/BiometricUserAuthPrompt.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/android/src/main/java/com/dsr/eudi/walletkit/reactnative/biometry/BiometricUserAuthPrompt.kt b/android/src/main/java/com/dsr/eudi/walletkit/reactnative/biometry/BiometricUserAuthPrompt.kt index 3c9e7f6..e8f71a6 100644 --- a/android/src/main/java/com/dsr/eudi/walletkit/reactnative/biometry/BiometricUserAuthPrompt.kt +++ b/android/src/main/java/com/dsr/eudi/walletkit/reactnative/biometry/BiometricUserAuthPrompt.kt @@ -9,7 +9,7 @@ import androidx.core.content.ContextCompat import androidx.fragment.app.FragmentActivity -// Based on OWF implementation: https://github.com/openwallet-foundation-labs/identity-credential/blob/main/wallet/src/main/java/com/android/identity_credential/wallet/BiometricUserAuthPrompt.kt +// Based on OWF Labs Identity Credential implementation: https://github.com/openwallet-foundation-labs/identity-credential/blob/main/wallet/src/main/java/com/android/identity_credential/wallet/BiometricUserAuthPrompt.kt /** * Prompts user for authentication, and calls the provided functions when authentication is @@ -159,8 +159,4 @@ private class BiometricUserAuthPrompt( biometricPrompt.authenticate(lskfPromptInfo) } } - - private fun resourceString(id: Int, vararg text: String): String { - return activity.applicationContext.resources.getString(id, *text) - } }