From 10078f1711625fc2b0d80c7f0c8c83ce1abd609d Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 26 Oct 2021 14:15:28 +0200 Subject: [PATCH] call biometricPrompt on UI --- .../nightscout/androidaps/utils/protection/BiometricCheck.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/info/nightscout/androidaps/utils/protection/BiometricCheck.kt b/core/src/main/java/info/nightscout/androidaps/utils/protection/BiometricCheck.kt index fe46155c8b..f3b8083baa 100644 --- a/core/src/main/java/info/nightscout/androidaps/utils/protection/BiometricCheck.kt +++ b/core/src/main/java/info/nightscout/androidaps/utils/protection/BiometricCheck.kt @@ -72,7 +72,9 @@ object BiometricCheck { // .setDeviceCredentialAllowed(true) // setDeviceCredentialAllowed creates new activity when PIN is requested, activity.fragmentManager crash afterwards .build() - biometricPrompt.authenticate(promptInfo) + runOnUiThread { + biometricPrompt.authenticate(promptInfo) + } } } \ No newline at end of file