mirror of
https://github.com/bitwarden/android.git
synced 2024-12-26 10:58:29 +03:00
PS-593 - View model properties are now updated on main thread (#1927)
This commit is contained in:
parent
5272c99643
commit
9a2b6c8ec9
1 changed files with 5 additions and 2 deletions
|
@ -41,8 +41,11 @@ namespace Bit.App.Pages
|
||||||
{
|
{
|
||||||
var cipher = await _cipherService.GetAsync(CipherId);
|
var cipher = await _cipherService.GetAsync(CipherId);
|
||||||
var decCipher = await cipher.DecryptAsync();
|
var decCipher = await cipher.DecryptAsync();
|
||||||
|
Device.BeginInvokeOnMainThread(() =>
|
||||||
|
{
|
||||||
History.ResetWithRange(decCipher.PasswordHistory ?? new List<PasswordHistoryView>());
|
History.ResetWithRange(decCipher.PasswordHistory ?? new List<PasswordHistoryView>());
|
||||||
ShowNoData = History.Count == 0;
|
ShowNoData = History.Count == 0;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void CopyAsync(PasswordHistoryView ph)
|
private async void CopyAsync(PasswordHistoryView ph)
|
||||||
|
|
Loading…
Reference in a new issue