mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Fix education screen
This commit is contained in:
@@ -612,18 +612,23 @@ class MainCredentialActivity : DatabaseModeActivity(), AdvancedUnlockFragment.Bu
|
|||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M
|
||||||
&& !readOnlyEducationPerformed) {
|
&& !readOnlyEducationPerformed) {
|
||||||
val biometricCanAuthenticate = AdvancedUnlockManager.canAuthenticate(this)
|
val biometricCanAuthenticate = AdvancedUnlockManager.canAuthenticate(this)
|
||||||
val biometricPerformed =
|
if ((biometricCanAuthenticate == BiometricManager.BIOMETRIC_ERROR_NONE_ENROLLED
|
||||||
(biometricCanAuthenticate == BiometricManager.BIOMETRIC_ERROR_NONE_ENROLLED
|
|
||||||
|| biometricCanAuthenticate == BiometricManager.BIOMETRIC_SUCCESS)
|
|| biometricCanAuthenticate == BiometricManager.BIOMETRIC_SUCCESS)
|
||||||
&& advancedUnlockButton != null
|
&& advancedUnlockButton != null) {
|
||||||
&& mPasswordActivityEducation.checkAndPerformedBiometricEducation(
|
mPasswordActivityEducation.checkAndPerformedBiometricEducation(
|
||||||
advancedUnlockButton!!,
|
advancedUnlockButton!!,
|
||||||
{
|
{
|
||||||
startActivity(Intent(this, SettingsAdvancedUnlockActivity::class.java))
|
startActivity(
|
||||||
},
|
Intent(
|
||||||
{
|
this,
|
||||||
|
SettingsAdvancedUnlockActivity::class.java
|
||||||
|
)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
|
||||||
})
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (ignored: Exception) {}
|
} catch (ignored: Exception) {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user