From b8b41fe847e3db5553a07f2a9246f4e8bc344b08 Mon Sep 17 00:00:00 2001 From: Federico Maccaroni Date: Fri, 27 May 2022 18:17:08 -0300 Subject: [PATCH] [PS-536] Fix vault blank after unlocking and back navigation (#1930) * PS-536 Fix by hack vault blank after unlocking and back navigate when previous page has value on iOS * PS-536 Added platform check to the hack so it doesn't affect Android performance given that's an issue particular for iOS --- .../Vault/GroupingsPage/GroupingsPageViewModel.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs b/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs index 57ee29f52..a1ba36d13 100644 --- a/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs +++ b/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs @@ -294,6 +294,12 @@ namespace Bit.App.Pages items.AddRange(itemGroup); } + if (Device.RuntimePlatform == Device.iOS) + { + // HACK: [PS-536] Fix to avoid blank list after back navigation on unlocking with previous page info + // because of update to XF v5.0.0.2401 + GroupedItems.Clear(); + } GroupedItems.ReplaceRange(items); } else @@ -316,6 +322,12 @@ namespace Bit.App.Pages if (groupedItems.Any()) { + if (Device.RuntimePlatform == Device.iOS) + { + // HACK: [PS-536] Fix to avoid blank list after back navigation on unlocking with previous page info + // because of update to XF v5.0.0.2401 + GroupedItems.Clear(); + } GroupedItems.ReplaceRange(new List { new GroupingsPageHeaderListItem(groupedItems[0].Name, groupedItems[0].ItemCount) }); GroupedItems.AddRange(items); }