1
0
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:
Kyle Spearrin
2016-06-30 20:08:34 -04:00
parent acfe0032ef
commit 8fd4e09b78
9 changed files with 117 additions and 6120 deletions

View File

@@ -67,7 +67,7 @@ namespace Bit.App.Pages
if(_checkFingerprintImmediately)
{
CheckFingerprintAsync();
var task = CheckFingerprintAsync();
}
}

View File

@@ -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();
}
}

View File

@@ -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));