mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 18:38:27 +03:00
_inited check on 2fa page load
This commit is contained in:
parent
5248df85ec
commit
dca567b00d
1 changed files with 13 additions and 7 deletions
|
@ -13,6 +13,7 @@ namespace Bit.App.Pages
|
||||||
private readonly IMessagingService _messagingService;
|
private readonly IMessagingService _messagingService;
|
||||||
|
|
||||||
private TwoFactorPageViewModel _vm;
|
private TwoFactorPageViewModel _vm;
|
||||||
|
private bool _inited;
|
||||||
|
|
||||||
public TwoFactorPage()
|
public TwoFactorPage()
|
||||||
{
|
{
|
||||||
|
@ -67,6 +68,10 @@ namespace Bit.App.Pages
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(!_inited)
|
||||||
|
{
|
||||||
|
_inited = true;
|
||||||
await LoadOnAppearedAsync(_scrollView, true, () =>
|
await LoadOnAppearedAsync(_scrollView, true, () =>
|
||||||
{
|
{
|
||||||
_vm.Init();
|
_vm.Init();
|
||||||
|
@ -77,6 +82,7 @@ namespace Bit.App.Pages
|
||||||
return Task.FromResult(0);
|
return Task.FromResult(0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected override void OnDisappearing()
|
protected override void OnDisappearing()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue