Add a 250ms sleep before prompting for password (#1431)

This commit is contained in:
Oscar Hinton 2021-06-15 20:29:11 +02:00 committed by GitHub
parent 79589b07fc
commit 2a5667251e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -246,6 +246,8 @@ namespace Bit.iOS.Autofill
} }
else if (!await storageService.GetAsync<bool>(Bit.Core.Constants.PasswordVerifiedAutofillKey)) else if (!await storageService.GetAsync<bool>(Bit.Core.Constants.PasswordVerifiedAutofillKey))
{ {
// Add a timeout to resolve keyboard not always showing up.
await Task.Delay(250);
var passwordRepromptService = ServiceContainer.Resolve<IPasswordRepromptService>("passwordRepromptService"); var passwordRepromptService = ServiceContainer.Resolve<IPasswordRepromptService>("passwordRepromptService");
if (!await passwordRepromptService.ShowPasswordPromptAsync()) if (!await passwordRepromptService.ShowPasswordPromptAsync())
{ {