mirror of
https://github.com/bitwarden/mobile
synced 2026-01-04 01:23:15 +00:00
More sync operations with broadcast refreshes of listing pages
This commit is contained in:
@@ -67,7 +67,7 @@ namespace Bit.App.Pages
|
||||
|
||||
if(_checkFingerprintImmediately)
|
||||
{
|
||||
CheckFingerprintAsync();
|
||||
var task = CheckFingerprintAsync();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace Bit.App.Pages
|
||||
private IDeviceInfo _deviceInfo;
|
||||
private IAppIdService _appIdService;
|
||||
private IUserDialogs _userDialogs;
|
||||
private ISyncService _syncService;
|
||||
|
||||
public LoginPage()
|
||||
{
|
||||
@@ -27,6 +28,7 @@ namespace Bit.App.Pages
|
||||
_deviceInfo = Resolver.Resolve<IDeviceInfo>();
|
||||
_appIdService = Resolver.Resolve<IAppIdService>();
|
||||
_userDialogs = Resolver.Resolve<IUserDialogs>();
|
||||
_syncService = Resolver.Resolve<ISyncService>();
|
||||
|
||||
Init();
|
||||
}
|
||||
@@ -125,6 +127,7 @@ namespace Bit.App.Pages
|
||||
_authService.Token = response.Result.Token;
|
||||
_authService.UserId = response.Result.Profile.Id;
|
||||
|
||||
var syncTask = _syncService.FullSyncAsync();
|
||||
Application.Current.MainPage = new MainPage();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,11 @@ namespace Bit.App.Pages
|
||||
|
||||
private void Init()
|
||||
{
|
||||
MessagingCenter.Subscribe<Application>(Application.Current, "SyncCompleted", async (sender) =>
|
||||
{
|
||||
await LoadFoldersAsync();
|
||||
});
|
||||
|
||||
if(!_favorites)
|
||||
{
|
||||
ToolbarItems.Add(new AddSiteToolBarItem(this));
|
||||
|
||||
Reference in New Issue
Block a user