mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
null checks
This commit is contained in:
parent
96275d8eec
commit
a239ee80bc
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ using Bit.Core.Abstractions;
|
||||||
using Bit.Core.Enums;
|
using Bit.Core.Enums;
|
||||||
using Bit.Core.Utilities;
|
using Bit.Core.Utilities;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Xamarin.Forms;
|
using Xamarin.Forms;
|
||||||
|
|
||||||
|
@ -93,7 +94,7 @@ namespace Bit.App.Pages
|
||||||
}
|
}
|
||||||
// Forced sync if for some reason we have no data after a v1 migration
|
// 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?.Any() ?? true) && (!_vm.Folders?.Any() ?? true) &&
|
||||||
Xamarin.Essentials.Connectivity.NetworkAccess != Xamarin.Essentials.NetworkAccess.None)
|
Xamarin.Essentials.Connectivity.NetworkAccess != Xamarin.Essentials.NetworkAccess.None)
|
||||||
{
|
{
|
||||||
var triedV1ReSync = await _storageService.GetAsync<bool?>(Constants.TriedV1Resync);
|
var triedV1ReSync = await _storageService.GetAsync<bool?>(Constants.TriedV1Resync);
|
||||||
|
|
Loading…
Reference in a new issue