From 2f3cded9c569197a64b09fbfe7bc4f6ae59d7ac9 Mon Sep 17 00:00:00 2001 From: Dinis Vieira Date: Mon, 26 Feb 2024 17:16:54 +0000 Subject: [PATCH] PM-6309 Fix to ensure the Icon and Icon placeholder visibility states is updated correctly based on website icons visibility choice (#3033) --- .../Controls/CipherViewCell/BaseCipherViewCell.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Core/Controls/CipherViewCell/BaseCipherViewCell.cs b/src/Core/Controls/CipherViewCell/BaseCipherViewCell.cs index 69fbd75f5..78dbf82ad 100644 --- a/src/Core/Controls/CipherViewCell/BaseCipherViewCell.cs +++ b/src/Core/Controls/CipherViewCell/BaseCipherViewCell.cs @@ -53,12 +53,13 @@ namespace Bit.App.Controls if (BindingContext is CipherItemViewModel cipherItemVM) { 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)