mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
only sync if not updated
This commit is contained in:
parent
8fc8d03cc4
commit
3dc705a7a9
1 changed files with 5 additions and 2 deletions
|
@ -103,8 +103,11 @@ namespace Bit.App
|
|||
|
||||
if(string.IsNullOrWhiteSpace(_uri))
|
||||
{
|
||||
Helpers.PerformUpdateTasks(_settings, _appInfoService, _databaseService, _syncService);
|
||||
await Task.Run(() => FullSyncAsync()).ConfigureAwait(false);
|
||||
var updated = Helpers.PerformUpdateTasks(_settings, _appInfoService, _databaseService, _syncService);
|
||||
if(!updated)
|
||||
{
|
||||
await Task.Run(() => FullSyncAsync()).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
|
||||
if((DateTime.UtcNow - _appSettingsService.LastCacheClear).TotalDays >= 1)
|
||||
|
|
Loading…
Reference in a new issue