1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-04 09:33:16 +00:00

Android styling. Invoke lock and isbusy updates on main UI thread. ConfigureAwaits in sync service.

This commit is contained in:
Kyle Spearrin
2016-08-17 00:39:42 -04:00
parent 189c56342a
commit ca4a00196a
9 changed files with 51 additions and 38 deletions

View File

@@ -71,9 +71,9 @@ namespace Bit.App
await Task.Run(() => IncrementalSyncAsync()).ConfigureAwait(false);
});
MessagingCenter.Subscribe<Application, bool>(Current, "Lock", async (sender, args) =>
MessagingCenter.Subscribe<Application, bool>(Current, "Lock", (sender, args) =>
{
await CheckLockAsync(args);
Device.BeginInvokeOnMainThread(async () => await CheckLockAsync(args));
});
MessagingCenter.Subscribe<Application, string>(Current, "Logout", (sender, args) =>
@@ -129,7 +129,7 @@ namespace Bit.App
{
try
{
await _syncService.IncrementalSyncAsync(TimeSpan.FromMinutes(30));
await _syncService.IncrementalSyncAsync(TimeSpan.FromMinutes(30)).ConfigureAwait(false);
break;
}
catch(WebException)
@@ -162,7 +162,7 @@ namespace Bit.App
{
try
{
await _syncService.FullSyncAsync();
await _syncService.FullSyncAsync().ConfigureAwait(false);
break;
}
catch(WebException)