diff --git a/presentation/src/main/java/org/cryptomator/presentation/presenter/VaultListPresenter.kt b/presentation/src/main/java/org/cryptomator/presentation/presenter/VaultListPresenter.kt index fd0ec4f7..0b5d50a9 100644 --- a/presentation/src/main/java/org/cryptomator/presentation/presenter/VaultListPresenter.kt +++ b/presentation/src/main/java/org/cryptomator/presentation/presenter/VaultListPresenter.kt @@ -537,7 +537,9 @@ class VaultListPresenter @Inject constructor( // } private fun canUseBiometricOn(vault: VaultModel): Boolean { - return vault.password != null && BiometricManager.from(context()).canAuthenticate() == BiometricManager.BIOMETRIC_SUCCESS + return vault.password != null && BiometricManager // + .from(context()) // + .canAuthenticate(BiometricManager.Authenticators.BIOMETRIC_STRONG) == BiometricManager.BIOMETRIC_SUCCESS } fun onAddExistingVault() { diff --git a/presentation/src/main/java/org/cryptomator/presentation/ui/activity/BiometricAuthSettingsActivity.kt b/presentation/src/main/java/org/cryptomator/presentation/ui/activity/BiometricAuthSettingsActivity.kt index a4de1005..eccb9323 100644 --- a/presentation/src/main/java/org/cryptomator/presentation/ui/activity/BiometricAuthSettingsActivity.kt +++ b/presentation/src/main/java/org/cryptomator/presentation/ui/activity/BiometricAuthSettingsActivity.kt @@ -36,7 +36,9 @@ class BiometricAuthSettingsActivity : BaseActivity(), // } override fun showSetupBiometricAuthDialog() { - val biometricAuthenticationAvailable = BiometricManager.from(context()).canAuthenticate() + val biometricAuthenticationAvailable = BiometricManager // + .from(context()) // + .canAuthenticate(BiometricManager.Authenticators.BIOMETRIC_STRONG) if (biometricAuthenticationAvailable == BiometricManager.BIOMETRIC_ERROR_NONE_ENROLLED) { showDialog(EnrollSystemBiometricDialog.newInstance()) } diff --git a/presentation/src/main/java/org/cryptomator/presentation/ui/fragment/SettingsFragment.kt b/presentation/src/main/java/org/cryptomator/presentation/ui/fragment/SettingsFragment.kt index a8cd7886..074155b0 100644 --- a/presentation/src/main/java/org/cryptomator/presentation/ui/fragment/SettingsFragment.kt +++ b/presentation/src/main/java/org/cryptomator/presentation/ui/fragment/SettingsFragment.kt @@ -99,7 +99,9 @@ class SettingsFragment : PreferenceFragmentCompat() { private fun activity(): SettingsActivity = this.activity as SettingsActivity private fun isBiometricAuthenticationNotAvailableRemovePreference() { - val biometricAuthenticationAvailable = BiometricManager.from(requireContext()).canAuthenticate() + val biometricAuthenticationAvailable = BiometricManager // + .from(requireContext()) // + .canAuthenticate(BiometricManager.Authenticators.BIOMETRIC_STRONG) if (biometricAuthenticationAvailable != BiometricManager.BIOMETRIC_SUCCESS && biometricAuthenticationAvailable != BiometricManager.BIOMETRIC_ERROR_NONE_ENROLLED) {