mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 07:43:37 +00:00
Android styling. Invoke lock and isbusy updates on main UI thread. ConfigureAwaits in sync service.
This commit is contained in:
@@ -28,12 +28,12 @@ namespace Bit.App.Controls
|
||||
{
|
||||
MessagingCenter.Subscribe<Application, bool>(Application.Current, "SyncCompleted", (sender, success) =>
|
||||
{
|
||||
IsBusy = _syncService.SyncInProgress;
|
||||
Device.BeginInvokeOnMainThread(() => IsBusy = _syncService.SyncInProgress);
|
||||
});
|
||||
|
||||
MessagingCenter.Subscribe<Application>(Application.Current, "SyncStarted", (sender) =>
|
||||
{
|
||||
IsBusy = _syncService.SyncInProgress;
|
||||
Device.BeginInvokeOnMainThread(() => IsBusy = _syncService.SyncInProgress);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user