mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
PM-6309 Fix to ensure the Icon and Icon placeholder visibility states is updated correctly based on website icons visibility choice (#3033)
This commit is contained in:
@@ -53,12 +53,13 @@ namespace Bit.App.Controls
|
|||||||
if (BindingContext is CipherItemViewModel cipherItemVM)
|
if (BindingContext is CipherItemViewModel cipherItemVM)
|
||||||
{
|
{
|
||||||
cipherItemVM.IconImageSuccesfullyLoaded = true;
|
cipherItemVM.IconImageSuccesfullyLoaded = true;
|
||||||
|
|
||||||
|
MainThread.BeginInvokeOnMainThread(() =>
|
||||||
|
{
|
||||||
|
Icon.IsVisible = cipherItemVM.ShowIconImage;
|
||||||
|
IconPlaceholder.IsVisible = !cipherItemVM.ShowIconImage;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
MainThread.BeginInvokeOnMainThread(() =>
|
|
||||||
{
|
|
||||||
Icon.IsVisible = true;
|
|
||||||
IconPlaceholder.IsVisible = false;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Icon_Error(object sender, FFImageLoading.Maui.CachedImageEvents.ErrorEventArgs e)
|
public void Icon_Error(object sender, FFImageLoading.Maui.CachedImageEvents.ErrorEventArgs e)
|
||||||
|
|||||||
Reference in New Issue
Block a user