mirror of
https://github.com/bitwarden/mobile.git
synced 2024-12-28 17:18:23 +01:00
only set default lock if unset
This commit is contained in:
parent
d620b70dac
commit
f8969675e7
@ -121,7 +121,11 @@ namespace Bit.App.Utilities
|
||||
if(lastBuild == null)
|
||||
{
|
||||
// Installed
|
||||
await storageService.SaveAsync(Constants.LockOptionKey, -1);
|
||||
var currentLock = await storageService.GetAsync<int?>(Constants.LockOptionKey);
|
||||
if(currentLock == null)
|
||||
{
|
||||
await storageService.SaveAsync(Constants.LockOptionKey, -1);
|
||||
}
|
||||
}
|
||||
else if(lastBuild != currentBuild)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user