Browse Source

[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
github-services/pull/1931/head
Federico Maccaroni 4 years ago committed by GitHub
parent
commit
b8b41fe847
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs

12
src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs

@ -294,6 +294,12 @@ namespace Bit.App.Pages @@ -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 @@ -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<IGroupingsPageListItem> { new GroupingsPageHeaderListItem(groupedItems[0].Name, groupedItems[0].ItemCount) });
GroupedItems.AddRange(items);
}

Loading…
Cancel
Save