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:
parent
678640966e
commit
c4ebd8b6b7
@ -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);
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user