mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
only set default lock if unset
This commit is contained in:
parent
d620b70dac
commit
f8969675e7
1 changed files with 5 additions and 1 deletions
|
@ -121,8 +121,12 @@ namespace Bit.App.Utilities
|
|||
if(lastBuild == null)
|
||||
{
|
||||
// Installed
|
||||
var currentLock = await storageService.GetAsync<int?>(Constants.LockOptionKey);
|
||||
if(currentLock == null)
|
||||
{
|
||||
await storageService.SaveAsync(Constants.LockOptionKey, -1);
|
||||
}
|
||||
}
|
||||
else if(lastBuild != currentBuild)
|
||||
{
|
||||
// Updated
|
||||
|
|
Loading…
Reference in a new issue