mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
no need to check sync success
This commit is contained in:
parent
419cfceef1
commit
60f81c5cba
1 changed files with 7 additions and 9 deletions
|
@ -3,6 +3,7 @@ using Bit.App.Resources;
|
|||
using Bit.App.Utilities;
|
||||
using Bit.Core.Abstractions;
|
||||
using Bit.Core.Enums;
|
||||
using Bit.Core.Exceptions;
|
||||
using Bit.Core.Models.Domain;
|
||||
using Bit.Core.Models.View;
|
||||
using Bit.Core.Utilities;
|
||||
|
@ -268,16 +269,13 @@ namespace Bit.App.Pages
|
|||
public async Task SyncAsync()
|
||||
{
|
||||
await _deviceActionService.ShowLoadingAsync(AppResources.Syncing);
|
||||
var success = await _syncService.FullSyncAsync(false);
|
||||
try
|
||||
{
|
||||
await _syncService.FullSyncAsync(false);
|
||||
}
|
||||
catch(ApiException) { }
|
||||
await _deviceActionService.HideLoadingAsync();
|
||||
if(success)
|
||||
{
|
||||
_platformUtilsService.ShowToast("success", null, AppResources.SyncingComplete);
|
||||
}
|
||||
else
|
||||
{
|
||||
await Page.DisplayAlert(null, AppResources.SyncingFailed, AppResources.Ok);
|
||||
}
|
||||
_platformUtilsService.ShowToast("success", null, AppResources.SyncingComplete);
|
||||
}
|
||||
|
||||
private async Task LoadDataAsync()
|
||||
|
|
Loading…
Reference in a new issue