1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-23 11:45:38 +01:00

fixes to locking

This commit is contained in:
Kyle Spearrin 2019-06-10 13:19:05 -04:00
parent 678640966e
commit c4ebd8b6b7
2 changed files with 3 additions and 1 deletions

View File

@ -88,7 +88,8 @@ namespace Bit.Droid
{ {
if(message.Command == "scheduleLockTimer") if(message.Command == "scheduleLockTimer")
{ {
var lockOptionMs = (int)message.Data * 1000; var lockOptionMinutes = (int)message.Data;
var lockOptionMs = lockOptionMinutes * 60000;
var triggerMs = Java.Lang.JavaSystem.CurrentTimeMillis() + lockOptionMs + 10; var triggerMs = Java.Lang.JavaSystem.CurrentTimeMillis() + lockOptionMs + 10;
var alarmManager = GetSystemService(AlarmService) as AlarmManager; var alarmManager = GetSystemService(AlarmService) as AlarmManager;
alarmManager.Set(AlarmType.RtcWakeup, triggerMs, _lockAlarmPendingIntent); alarmManager.Set(AlarmType.RtcWakeup, triggerMs, _lockAlarmPendingIntent);

View File

@ -275,6 +275,7 @@ namespace Bit.App.Pages
{ {
await _storageService.RemoveAsync(Constants.FingerprintUnlockKey); await _storageService.RemoveAsync(Constants.FingerprintUnlockKey);
} }
_lockService.FingerprintLocked = false;
await _cryptoService.ToggleKeyAsync(); await _cryptoService.ToggleKeyAsync();
BuildList(); BuildList();
} }