1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

Added stepper cell to password generator settings page. Conditionally show sync indicator on pages.

This commit is contained in:
Kyle Spearrin
2016-07-12 18:59:09 -04:00
parent f2893e788d
commit 822a14e56c
9 changed files with 87 additions and 35 deletions

View File

@@ -9,22 +9,26 @@ namespace Bit.App.Controls
{
private ISyncService _syncService;
public ExtendedContentPage()
public ExtendedContentPage(bool syncIndicator = true)
{
_syncService = Resolver.Resolve<ISyncService>();
BackgroundColor = Color.FromHex("efeff4");
IsBusy = _syncService.SyncInProgress;
MessagingCenter.Subscribe<Application, bool>(Application.Current, "SyncCompleted", (sender, success) =>
if(syncIndicator)
{
IsBusy = _syncService.SyncInProgress;
});
MessagingCenter.Subscribe<Application>(Application.Current, "SyncStarted", (sender) =>
{
IsBusy = _syncService.SyncInProgress;
});
MessagingCenter.Subscribe<Application, bool>(Application.Current, "SyncCompleted", (sender, success) =>
{
IsBusy = _syncService.SyncInProgress;
});
MessagingCenter.Subscribe<Application>(Application.Current, "SyncStarted", (sender) =>
{
IsBusy = _syncService.SyncInProgress;
});
}
}
}
}