From 57213607a73f348d7a0e842b5145e439b62c1d12 Mon Sep 17 00:00:00 2001 From: Federico Maccaroni Date: Mon, 25 Apr 2022 18:43:55 -0300 Subject: [PATCH] PS-291 Fix password history to update the collection on the main thread to load correctly (#1890) --- src/App/Pages/Generator/GeneratorHistoryPageViewModel.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/App/Pages/Generator/GeneratorHistoryPageViewModel.cs b/src/App/Pages/Generator/GeneratorHistoryPageViewModel.cs index ab63c81b0..1d34812ec 100644 --- a/src/App/Pages/Generator/GeneratorHistoryPageViewModel.cs +++ b/src/App/Pages/Generator/GeneratorHistoryPageViewModel.cs @@ -41,8 +41,11 @@ namespace Bit.App.Pages public async Task InitAsync() { var history = await _passwordGenerationService.GetHistoryAsync(); - History.ResetWithRange(history ?? new List()); - ShowNoData = History.Count == 0; + Device.BeginInvokeOnMainThread(() => + { + History.ResetWithRange(history ?? new List()); + ShowNoData = History.Count == 0; + }); } public async Task ClearAsync()