Browse Source

[PM-8666] Fix Password Autofill from Quick Type on iOS < 17 (#3282)

github-services/pull/3283/head
Federico Maccaroni 2 years ago committed by GitHub
parent
commit
81205154c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 44
      src/iOS.Autofill/CredentialProviderViewController.cs

44
src/iOS.Autofill/CredentialProviderViewController.cs

@ -152,17 +152,17 @@ namespace Bit.iOS.Autofill @@ -152,17 +152,17 @@ namespace Bit.iOS.Autofill
}
}
//public override async void ProvideCredentialWithoutUserInteraction(ASPasswordCredentialIdentity credentialIdentity)
//{
// try
// {
// await ProvideCredentialWithoutUserInteractionAsync(credentialIdentity);
// }
// catch (Exception ex)
// {
// OnProvidingCredentialException(ex);
// }
//}
public override async void ProvideCredentialWithoutUserInteraction(ASPasswordCredentialIdentity credentialIdentity)
{
try
{
await ProvideCredentialWithoutUserInteractionAsync(credentialIdentity);
}
catch (Exception ex)
{
OnProvidingCredentialException(ex);
}
}
[Export("prepareInterfaceToProvideCredentialForRequest:")]
public override async void PrepareInterfaceToProvideCredential(IASCredentialRequest credentialRequest)
@ -197,17 +197,17 @@ namespace Bit.iOS.Autofill @@ -197,17 +197,17 @@ namespace Bit.iOS.Autofill
}
}
//public override async void PrepareInterfaceToProvideCredential(ASPasswordCredentialIdentity credentialIdentity)
//{
// try
// {
// await PrepareInterfaceToProvideCredentialAsync(c => c.PasswordCredentialIdentity = credentialIdentity);
// }
// catch (Exception ex)
// {
// OnProvidingCredentialException(ex);
// }
//}
public override async void PrepareInterfaceToProvideCredential(ASPasswordCredentialIdentity credentialIdentity)
{
try
{
await PrepareInterfaceToProvideCredentialAsync(c => c.PasswordCredentialIdentity = credentialIdentity);
}
catch (Exception ex)
{
OnProvidingCredentialException(ex);
}
}
public override async void PrepareInterfaceForExtensionConfiguration()
{

Loading…
Cancel
Save