1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-06 10:34:07 +00:00

PS-593 - View model properties are now updated on main thread (#1927)

This commit is contained in:
Carlos Gonçalves
2022-05-27 14:16:45 +01:00
committed by GitHub
parent 5272c99643
commit 9a2b6c8ec9

View File

@@ -41,8 +41,11 @@ namespace Bit.App.Pages
{
var cipher = await _cipherService.GetAsync(CipherId);
var decCipher = await cipher.DecryptAsync();
History.ResetWithRange(decCipher.PasswordHistory ?? new List<PasswordHistoryView>());
ShowNoData = History.Count == 0;
Device.BeginInvokeOnMainThread(() =>
{
History.ResetWithRange(decCipher.PasswordHistory ?? new List<PasswordHistoryView>());
ShowNoData = History.Count == 0;
});
}
private async void CopyAsync(PasswordHistoryView ph)