diff --git a/src/iOS.Autofill/LoginListViewController.cs b/src/iOS.Autofill/LoginListViewController.cs index 37867dc11..7901e44e3 100644 --- a/src/iOS.Autofill/LoginListViewController.cs +++ b/src/iOS.Autofill/LoginListViewController.cs @@ -215,9 +215,14 @@ namespace Bit.iOS.Autofill { if (Context?.IsExecutingWithoutUserInteraction == false) { - await _platformUtilsService.Value.ShowDialogAsync( + _ = _platformUtilsService.Value.ShowDialogAsync( string.Format(AppResources.ThereWasAProblemReadingAPasskeyForXTryAgainLater, Context.PasskeyCredentialRequestParameters.RelyingPartyIdentifier), AppResources.ErrorReadingPasskey); + + TableView.SectionHeaderHeight = 0; + Context.IsPasswordFallback = true; + await ReloadItemsAsync(); + _alreadyLoadItemsOnce = true; } } catch (Exception ex) diff --git a/src/iOS.Autofill/Models/Context.cs b/src/iOS.Autofill/Models/Context.cs index a1bf25de7..ce22d92be 100644 --- a/src/iOS.Autofill/Models/Context.cs +++ b/src/iOS.Autofill/Models/Context.cs @@ -70,7 +70,9 @@ namespace Bit.iOS.Autofill.Models public bool IsPasskey => PasskeyCredentialRequest != null; - public bool IsPreparingListForPasskey => PasskeyCredentialRequestParameters != null; + public bool IsPasswordFallback { get; set; } + + public bool IsPreparingListForPasskey => PasskeyCredentialRequestParameters != null && !IsPasswordFallback; public bool IsCreatingOrPreparingListForPasskey => IsCreatingPasskey || IsPreparingListForPasskey; }