mirror of
https://github.com/bitwarden/mobile
synced 2025-12-14 15:23:35 +00:00
only set default lock if unset
This commit is contained in:
@@ -121,8 +121,12 @@ namespace Bit.App.Utilities
|
|||||||
if(lastBuild == null)
|
if(lastBuild == null)
|
||||||
{
|
{
|
||||||
// Installed
|
// Installed
|
||||||
|
var currentLock = await storageService.GetAsync<int?>(Constants.LockOptionKey);
|
||||||
|
if(currentLock == null)
|
||||||
|
{
|
||||||
await storageService.SaveAsync(Constants.LockOptionKey, -1);
|
await storageService.SaveAsync(Constants.LockOptionKey, -1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if(lastBuild != currentBuild)
|
else if(lastBuild != currentBuild)
|
||||||
{
|
{
|
||||||
// Updated
|
// Updated
|
||||||
|
|||||||
Reference in New Issue
Block a user