mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Update screen lock.
This commit is contained in:
committed by
mtang-signal
parent
c880db0f4a
commit
3bdbd69a7d
@@ -17,7 +17,7 @@ import org.thoughtcrime.securesms.util.ServiceUtil
|
||||
class BiometricDeviceAuthentication(
|
||||
private val biometricManager: BiometricManager,
|
||||
private val biometricPrompt: BiometricPrompt,
|
||||
private val biometricPromptInfo: PromptInfo
|
||||
private var biometricPromptInfo: PromptInfo
|
||||
) {
|
||||
companion object {
|
||||
const val AUTHENTICATED = 1
|
||||
@@ -69,6 +69,10 @@ class BiometricDeviceAuthentication(
|
||||
fun cancelAuthentication() {
|
||||
biometricPrompt.cancelAuthentication()
|
||||
}
|
||||
|
||||
fun updatePromptInfo(promptInfo: PromptInfo) {
|
||||
biometricPromptInfo = promptInfo
|
||||
}
|
||||
}
|
||||
|
||||
class BiometricDeviceLockContract : ActivityResultContract<String, Int>() {
|
||||
|
||||
Reference in New Issue
Block a user