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")
{
var lockOptionMs = (int)message.Data * 1000;
var lockOptionMinutes = (int)message.Data;
var lockOptionMs = lockOptionMinutes * 60000;
var triggerMs = Java.Lang.JavaSystem.CurrentTimeMillis() + lockOptionMs + 10;
var alarmManager = GetSystemService(AlarmService) as AlarmManager;
alarmManager.Set(AlarmType.RtcWakeup, triggerMs, _lockAlarmPendingIntent);

View file

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