make sure master password is no longer in unmasked mode when using fingerprint, closes https://github.com/PhilippC/keepass2android/issues/1134

This commit is contained in:
Philipp Crocoll
2022-01-15 16:28:00 +01:00
parent d536b38acc
commit 2b85ed473c

View File

@@ -961,6 +961,14 @@ namespace keepass2android
{
var masterPassword = _biometricDec.DecryptStored(Database.GetFingerprintPrefKey(_ioConnection));
_password = FindViewById<EditText>(Resource.Id.password_edit).Text = masterPassword;
if (_showPassword)
{
_showPassword = false;
MakePasswordMaskedOrVisible();
}
FindViewById<EditText>(Resource.Id.password_edit).Enabled = false; //prevent accidental modification of password
}