1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-27 13:43:32 +00:00

Moved to default lock of 15 minutes. Removed context options from vault list. Made folder add name selectable.

This commit is contained in:
Kyle Spearrin
2016-07-30 16:39:52 -04:00
parent d5c8ce646a
commit c44726bd54
5 changed files with 19 additions and 63 deletions

View File

@@ -33,9 +33,9 @@ namespace Bit.App.Services
// Are we forcing a lock? (i.e. clicking a button to lock the app manually, immediately)
if(!forceLock && !_settings.GetValueOrDefault(Constants.SettingLocked, false))
{
// Lock seconds tells if if they want to lock the app or not
var lockSeconds = _settings.GetValueOrDefault<int?>(Constants.SettingLockSeconds);
if(!lockSeconds.HasValue)
// Lock seconds tells if they want to lock the app or not
var lockSeconds = _settings.GetValueOrDefault(Constants.SettingLockSeconds, 60 * 15);
if(lockSeconds == -1)
{
return LockType.None;
}
@@ -43,7 +43,7 @@ namespace Bit.App.Services
// Has it been longer than lockSeconds since the last time the app was backgrounded?
var now = DateTime.UtcNow;
var lastBackground = _settings.GetValueOrDefault(Constants.SettingLastBackgroundedDate, now.AddYears(-1));
if((now - lastBackground).TotalSeconds < lockSeconds.Value)
if((now - lastBackground).TotalSeconds < lockSeconds)
{
return LockType.None;
}