mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
use proper set lock option method
This commit is contained in:
parent
c5bd59e52c
commit
6e42f5ce7b
3 changed files with 3 additions and 3 deletions
|
@ -186,7 +186,7 @@ namespace Bit.App.Pages
|
|||
var cleanSelection = selection.Replace("✓ ", string.Empty);
|
||||
var selectionOption = _lockOptions.FirstOrDefault(o => o.Key == cleanSelection);
|
||||
_lockOptionValue = selectionOption.Key;
|
||||
await _storageService.SaveAsync(Constants.LockOptionKey, selectionOption.Value);
|
||||
await _lockService.SetLockOptionAsync(selectionOption.Value);
|
||||
BuildList();
|
||||
}
|
||||
|
||||
|
|
|
@ -12,6 +12,6 @@ namespace Bit.Core.Abstractions
|
|||
Task<bool> IsLockedAsync();
|
||||
Task<Tuple<bool, bool>> IsPinLockSetAsync();
|
||||
Task LockAsync(bool allowSoftLock = false);
|
||||
Task SetLockOptionAsync(int lockOption);
|
||||
Task SetLockOptionAsync(int? lockOption);
|
||||
}
|
||||
}
|
|
@ -121,7 +121,7 @@ namespace Bit.Core.Services
|
|||
// TODO: locked callback?
|
||||
}
|
||||
|
||||
public async Task SetLockOptionAsync(int lockOption)
|
||||
public async Task SetLockOptionAsync(int? lockOption)
|
||||
{
|
||||
await _storageService.SaveAsync(Constants.LockOptionKey, lockOption);
|
||||
await _cryptoService.ToggleKeyAsync();
|
||||
|
|
Loading…
Reference in a new issue