diff --git a/app/src/main/java/com/kunzisoft/keepass/settings/NestedAppSettingsFragment.kt b/app/src/main/java/com/kunzisoft/keepass/settings/NestedAppSettingsFragment.kt index 6ac115c4b..6697c541c 100644 --- a/app/src/main/java/com/kunzisoft/keepass/settings/NestedAppSettingsFragment.kt +++ b/app/src/main/java/com/kunzisoft/keepass/settings/NestedAppSettingsFragment.kt @@ -248,13 +248,19 @@ class NestedAppSettingsFragment : NestedSettingsFragment() { BiometricUnlockDatabaseHelper.deleteEntryKeyInKeystoreForBiometric( activity, object : BiometricUnlockDatabaseHelper.BiometricUnlockErrorCallback { - override fun onInvalidKeyException(e: Exception) {} - - override fun onBiometricException(e: Exception) { + fun showException(e: Exception) { Toast.makeText(context, getString(R.string.biometric_scanning_error, e.localizedMessage), Toast.LENGTH_SHORT).show() } + + override fun onInvalidKeyException(e: Exception) { + showException(e) + } + + override fun onBiometricException(e: Exception) { + showException(e) + } }) } CipherDatabaseAction.getInstance(context.applicationContext).deleteAll()