1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-23 11:45:38 +01:00

check internet connection on sync

This commit is contained in:
Kyle Spearrin 2019-06-04 23:26:56 -04:00
parent 279b53704b
commit db10fee207

View File

@ -87,8 +87,10 @@ namespace Bit.App.Pages
await _vm.LoadAsync();
}
}
// Forced sync if for some reason we have no data after a v1 migration
if(_vm.MainPage && !_syncService.SyncInProgress && migratedFromV1.GetValueOrDefault() &&
_vm.Ciphers.Count == 0 && _vm.Folders.Count == 0)
_vm.Ciphers.Count == 0 && _vm.Folders.Count == 0 &&
Xamarin.Essentials.Connectivity.NetworkAccess != Xamarin.Essentials.NetworkAccess.None)
{
await _syncService.FullSyncAsync(true);
}