mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-23 11:45:38 +01:00
PM-1352 Fix avatar toolbar item not loading on OTP cipher selection (#2507)
This commit is contained in:
parent
7b44395e1a
commit
c1673a1bbf
@ -16,7 +16,7 @@
|
|||||||
IconImageSource="{Binding AvatarImageSource}"
|
IconImageSource="{Binding AvatarImageSource}"
|
||||||
Command="{Binding Source={x:Reference _accountListOverlay}, Path=ToggleVisibililtyCommand}"
|
Command="{Binding Source={x:Reference _accountListOverlay}, Path=ToggleVisibililtyCommand}"
|
||||||
Order="Primary"
|
Order="Primary"
|
||||||
Priority="-2"
|
Priority="-1"
|
||||||
UseOriginalImage="True"
|
UseOriginalImage="True"
|
||||||
AutomationProperties.IsInAccessibleTree="True"
|
AutomationProperties.IsInAccessibleTree="True"
|
||||||
AutomationProperties.Name="{u:I18n Account}" />
|
AutomationProperties.Name="{u:I18n Account}" />
|
||||||
|
@ -69,14 +69,16 @@ namespace Bit.App.Pages
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: There's currently an issue on iOS where the toolbar item is not getting updated
|
try
|
||||||
// as the others somehow. Removing this so at least we get the circle with ".." instead
|
|
||||||
// of a white circle
|
|
||||||
if (Device.RuntimePlatform != Device.iOS)
|
|
||||||
{
|
{
|
||||||
|
// don't crash the app if the avatar can't be loaded, just log the ex
|
||||||
_accountAvatar?.OnAppearing();
|
_accountAvatar?.OnAppearing();
|
||||||
_vm.AvatarImageSource = await GetAvatarImageSourceAsync();
|
_vm.AvatarImageSource = await GetAvatarImageSourceAsync();
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
LoggerHelper.LogEvenIfCantBeResolved(ex);
|
||||||
|
}
|
||||||
|
|
||||||
_broadcasterService.Subscribe(nameof(CipherSelectionPage), async (message) =>
|
_broadcasterService.Subscribe(nameof(CipherSelectionPage), async (message) =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user