mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
check internet connection on sync
This commit is contained in:
parent
279b53704b
commit
db10fee207
1 changed files with 3 additions and 1 deletions
|
@ -87,8 +87,10 @@ namespace Bit.App.Pages
|
||||||
await _vm.LoadAsync();
|
await _vm.LoadAsync();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Forced sync if for some reason we have no data after a v1 migration
|
||||||
if(_vm.MainPage && !_syncService.SyncInProgress && migratedFromV1.GetValueOrDefault() &&
|
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);
|
await _syncService.FullSyncAsync(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue