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:
@@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user