mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
fixes to locking
This commit is contained in:
parent
678640966e
commit
c4ebd8b6b7
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -275,6 +275,7 @@ namespace Bit.App.Pages
|
|||
{
|
||||
await _storageService.RemoveAsync(Constants.FingerprintUnlockKey);
|
||||
}
|
||||
_lockService.FingerprintLocked = false;
|
||||
await _cryptoService.ToggleKeyAsync();
|
||||
BuildList();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue