mirror of
https://github.com/bitwarden/android.git
synced 2025-01-11 18:57:39 +03:00
triedV1ReSync check
This commit is contained in:
parent
db10fee207
commit
1ef086a02c
3 changed files with 8 additions and 1 deletions
|
@ -92,7 +92,12 @@ namespace Bit.App.Pages
|
||||||
_vm.Ciphers.Count == 0 && _vm.Folders.Count == 0 &&
|
_vm.Ciphers.Count == 0 && _vm.Folders.Count == 0 &&
|
||||||
Xamarin.Essentials.Connectivity.NetworkAccess != Xamarin.Essentials.NetworkAccess.None)
|
Xamarin.Essentials.Connectivity.NetworkAccess != Xamarin.Essentials.NetworkAccess.None)
|
||||||
{
|
{
|
||||||
await _syncService.FullSyncAsync(true);
|
var triedV1ReSync = await _storageService.GetAsync<bool?>(Constants.TriedV1Resync);
|
||||||
|
if(!triedV1ReSync.GetValueOrDefault())
|
||||||
|
{
|
||||||
|
await _storageService.SaveAsync(Constants.TriedV1Resync, true);
|
||||||
|
await _syncService.FullSyncAsync(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, _mainContent);
|
}, _mainContent);
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@ namespace Bit.App.Services
|
||||||
Constants.LastBuildKey,
|
Constants.LastBuildKey,
|
||||||
Constants.MigratedFromV1,
|
Constants.MigratedFromV1,
|
||||||
Constants.MigratedFromV1AutofillPromptShown,
|
Constants.MigratedFromV1AutofillPromptShown,
|
||||||
|
Constants.TriedV1Resync,
|
||||||
};
|
};
|
||||||
|
|
||||||
public MobileStorageService(
|
public MobileStorageService(
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
public static string AddSitePromptShownKey = "addSitePromptShown";
|
public static string AddSitePromptShownKey = "addSitePromptShown";
|
||||||
public static string MigratedFromV1 = "migratedFromV1";
|
public static string MigratedFromV1 = "migratedFromV1";
|
||||||
public static string MigratedFromV1AutofillPromptShown = "migratedV1AutofillPromptShown";
|
public static string MigratedFromV1AutofillPromptShown = "migratedV1AutofillPromptShown";
|
||||||
|
public static string TriedV1Resync = "triedV1Resync";
|
||||||
public const int SelectFileRequestCode = 42;
|
public const int SelectFileRequestCode = 42;
|
||||||
public const int SelectFilePermissionRequestCode = 43;
|
public const int SelectFilePermissionRequestCode = 43;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue