Fix small bugs #805

This commit is contained in:
J-Jamet
2020-12-05 12:09:07 +01:00
parent 6a7649e1d7
commit 5b247575c8
4 changed files with 32 additions and 11 deletions

View File

@@ -3,6 +3,7 @@ KeePassDX(2.9.3)
* Remove default database parameter when the file is no longer accessible #803
* Move OTP button to the first view level in Magikeyboard #587
* Tooltips for Magikeyboard #586
* Fix small bugs #805
KeePassDX(2.9.2)
* Managing OTP links from QR applications #556

View File

@@ -200,13 +200,35 @@ class AdvancedUnlockedManager(var context: FragmentActivity,
advancedUnlockInfoView?.setIconViewClickListener(false, null)
}
@Suppress("DEPRECATION")
private fun openBiometricSetting() {
advancedUnlockInfoView?.setIconViewClickListener(false) {
when {
/*
Build.VERSION.SDK_INT >= Build.VERSION_CODES.R -> {
// Need parameters and result parser
context.startActivityForResult(Intent(Settings.ACTION_BIOMETRIC_ENROLL),
ACTION_BIOMETRIC_ENROLL_REQUEST_CODE)
}
Build.VERSION.SDK_INT >= Build.VERSION_CODES.P -> {
// Not working with Xiaomi... (crash after trying to enroll fingerprint
context.startActivityForResult(Intent(Settings.ACTION_FINGERPRINT_ENROLL),
ACTION_FINGERPRINT_ENROLL_REQUEST_CODE)
}
*/
else -> {
// ACTION_SECURITY_SETTINGS do not contains fingerprint enrollment in Xiaomi...
context.startActivity(Intent(Settings.ACTION_SETTINGS))
}
}
}
}
private fun initSecurityUpdateRequired() {
showFingerPrintViews(true)
setAdvancedUnlockedTitleView(R.string.biometric_security_update_required)
advancedUnlockInfoView?.setIconViewClickListener(false) {
context.startActivity(Intent(Settings.ACTION_SECURITY_SETTINGS))
}
openBiometricSetting()
}
private fun initNotConfigured() {
@@ -214,18 +236,14 @@ class AdvancedUnlockedManager(var context: FragmentActivity,
setAdvancedUnlockedTitleView(R.string.configure_biometric)
setAdvancedUnlockedMessageView("")
advancedUnlockInfoView?.setIconViewClickListener(false) {
context.startActivity(Intent(Settings.ACTION_SECURITY_SETTINGS))
}
openBiometricSetting()
}
private fun initKeyManagerNotAvailable() {
showFingerPrintViews(true)
setAdvancedUnlockedTitleView(R.string.keystore_not_accessible)
advancedUnlockInfoView?.setIconViewClickListener(false) {
context.startActivity(Intent(Settings.ACTION_SECURITY_SETTINGS))
}
openBiometricSetting()
}
private fun initWaitData() {

View File

@@ -1,4 +1,5 @@
* Unlock database by device credentials (PIN/Password/Pattern) #779 #102
* Remove default database parameter when the file is no longer accessible #803
* Move OTP button to the first view level in Magikeyboard #587
* Tooltips for Magikeyboard #586
* Tooltips for Magikeyboard #586
* Fix small bugs #805

View File

@@ -1,4 +1,5 @@
* Déverouillage de base de données avec identifiants de l'appareil (PIN/Password/Pattern) #779 #102
* Supprimer le parmètre de base de données par défaut quand le fichier n'est plus accessible #803
* Déplacer le bouton OTP vers le premier niveau de vue dans le Magiclavier #587
* Info-bulles pour le Magiclavier #586
* Info-bulles pour le Magiclavier #586
* Correction petits bugs #805