mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
migration flag fix
This commit is contained in:
parent
638de90cc4
commit
50f71e7280
2 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ namespace Bit.App.Migration
|
|||
public static bool NeedsMigration()
|
||||
{
|
||||
return ServiceContainer.Resolve<SettingsShim>("settingsShim")
|
||||
.GetValueOrDefault(Constants.OldLastActivityKey, DateTime.MinValue) > DateTime.MinValue;
|
||||
.GetValueOrDefault(Constants.OldUserIdKey, DateTime.MinValue) > DateTime.MinValue;
|
||||
}
|
||||
|
||||
public static async Task<bool> PerformMigrationAsync()
|
||||
|
@ -158,7 +158,7 @@ namespace Bit.App.Migration
|
|||
await cryptoService.SetEncPrivateKeyAsync(oldEncPrivateKey);
|
||||
|
||||
// Remove "needs migration" flag
|
||||
settingsShim.Remove(Constants.OldLastActivityKey);
|
||||
settingsShim.Remove(Constants.OldUserIdKey);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
public static string ClearClipboardKey = "clearClipboard";
|
||||
public static string LastClipboardValueKey = "lastClipboardValue";
|
||||
public static string LastBuildKey = "lastBuild";
|
||||
public static string OldLastActivityKey = "other:lastActivityDate";
|
||||
public static string OldUserIdKey = "userId";
|
||||
public const int SelectFileRequestCode = 42;
|
||||
public const int SelectFilePermissionRequestCode = 43;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue