1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-16 16:23:29 +00:00

PM-1352 Fix avatar toolbar item not loading on OTP cipher selection (#2507)

This commit is contained in:
Federico Maccaroni
2023-05-05 18:18:07 +02:00
committed by GitHub
parent 7b44395e1a
commit c1673a1bbf
2 changed files with 7 additions and 5 deletions

View File

@@ -69,14 +69,16 @@ namespace Bit.App.Pages
return;
}
// TODO: There's currently an issue on iOS where the toolbar item is not getting updated
// as the others somehow. Removing this so at least we get the circle with ".." instead
// of a white circle
if (Device.RuntimePlatform != Device.iOS)
try
{
// don't crash the app if the avatar can't be loaded, just log the ex
_accountAvatar?.OnAppearing();
_vm.AvatarImageSource = await GetAvatarImageSourceAsync();
}
catch (Exception ex)
{
LoggerHelper.LogEvenIfCantBeResolved(ex);
}
_broadcasterService.Subscribe(nameof(CipherSelectionPage), async (message) =>
{