Skip to content

Commit

Permalink
Merge branch 'feature/maui-migration-passkeys' into feature/maui-migr…
Browse files Browse the repository at this point in the history
…aton-passkeys-android-unlock
  • Loading branch information
dinisvieira committed Apr 2, 2024
2 parents 3441f14 + 856a084 commit e30e68b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/Core/Pages/Accounts/EnvironmentPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
<ScrollView>
<StackLayout Spacing="20">
<StackLayout StyleClass="box">
<StackLayout StyleClass="box-row-header">
<Label Text="MAUI APP"
StyleClass="box-header, box-header-platform" />
</StackLayout>
<StackLayout StyleClass="box-row-header">
<Label Text="{u:I18n SelfHostedEnvironment, Header=True}"
StyleClass="box-header, box-header-platform" />
Expand Down
3 changes: 1 addition & 2 deletions src/Core/Pages/Settings/AboutSettingsPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ public string AppInfo
{
get
{
// TODO: REMOVE WHEN MERGED INTO MAIN BRANCH
var appInfo = string.Format("MAUI {0}: {1} ({2})",
var appInfo = string.Format("{0}: {1} ({2})",
AppResources.Version,
_platformUtilsService.GetApplicationVersion(),
_deviceActionService.GetBuildNumber());
Expand Down
7 changes: 6 additions & 1 deletion src/iOS.Autofill/LoginListViewController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,14 @@ public async Task DoFido2GetAssertionAsync(IFido2GetAssertionUserInterface fido2
{
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)
Expand Down
4 changes: 3 additions & 1 deletion src/iOS.Autofill/Models/Context.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ public ASPasskeyCredentialIdentity PasskeyCredentialIdentity

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;
}
Expand Down

0 comments on commit e30e68b

Please sign in to comment.