1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-06 10:34:07 +00:00

show loading indicator if syncing an no items

This commit is contained in:
Kyle Spearrin
2017-11-27 15:42:36 -05:00
parent e753acbc3f
commit 9bbddd6aeb
4 changed files with 22 additions and 11 deletions

View File

@@ -554,7 +554,7 @@ namespace Bit.App.Services
}
SyncInProgress = true;
MessagingCenter.Send(this, "SyncStarted");
MessagingCenter.Send(Application.Current, "SyncStarted");
}
private void SyncCompleted(bool successfully)
@@ -565,7 +565,7 @@ namespace Bit.App.Services
}
SyncInProgress = false;
MessagingCenter.Send(this, "SyncCompleted", successfully);
MessagingCenter.Send(Application.Current, "SyncCompleted", successfully);
}
private bool CheckSuccess<T>(ApiResult<T> result, bool logout = false)