mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
full sync on login
This commit is contained in:
parent
6288a06b49
commit
4b7366e9b3
1 changed files with 3 additions and 0 deletions
|
@ -13,11 +13,13 @@ namespace Bit.App.Pages
|
|||
{
|
||||
private readonly IDeviceActionService _deviceActionService;
|
||||
private readonly IAuthService _authService;
|
||||
private readonly ISyncService _syncService;
|
||||
|
||||
public LoginPageViewModel()
|
||||
{
|
||||
_deviceActionService = ServiceContainer.Resolve<IDeviceActionService>("deviceActionService");
|
||||
_authService = ServiceContainer.Resolve<IAuthService>("authService");
|
||||
_syncService = ServiceContainer.Resolve<ISyncService>("syncService");
|
||||
|
||||
PageTitle = AppResources.Bitwarden;
|
||||
ShowPasswordCommand = new Command(() =>
|
||||
|
@ -62,6 +64,7 @@ namespace Bit.App.Pages
|
|||
}
|
||||
else
|
||||
{
|
||||
var task = Task.Run(async () => await _syncService.FullSyncAsync(true));
|
||||
Application.Current.MainPage = new TabsPage();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue