mirror of
https://github.com/bitwarden/mobile.git
synced 2024-09-27 03:52:57 +02:00
[PM-7186] Fallback to password list on exception (#3127)
* PM-7186 Added fallback in case of exception that loads password list * PM-7186 Added back the error message removed in last commit.
This commit is contained in:
parent
4633fea41e
commit
856a084a47
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user