From 81205154c424266196c5f594098317ff9d0b3a90 Mon Sep 17 00:00:00 2001 From: Federico Maccaroni Date: Thu, 6 Jun 2024 16:30:51 -0300 Subject: [PATCH] [PM-8666] Fix Password Autofill from Quick Type on iOS < 17 (#3282) --- .../CredentialProviderViewController.cs | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/iOS.Autofill/CredentialProviderViewController.cs b/src/iOS.Autofill/CredentialProviderViewController.cs index 3fc93f0e2..9f30ff3be 100644 --- a/src/iOS.Autofill/CredentialProviderViewController.cs +++ b/src/iOS.Autofill/CredentialProviderViewController.cs @@ -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 } } - //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() {