changes to locking of the database: implement an alternative to alarm-based timeout (using a timeout variables checked when resuming), closes https://github.com/PhilippC/keepass2android/issues/1346
This commit is contained in:
@@ -38,7 +38,7 @@ namespace keepass2android
|
||||
/// <summary>
|
||||
/// Locks all currently open databases, quicklocking if available (unless false is passed for allowQuickUnlock)
|
||||
/// </summary>
|
||||
void Lock(bool allowQuickUnlock);
|
||||
void Lock(bool allowQuickUnlock, bool lockWasTriggeredByTimeout);
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -234,7 +234,7 @@ namespace keepass2android
|
||||
else
|
||||
{
|
||||
// Let's not bother recovering from a failure to save. It is too much work.
|
||||
App.Lock(false);
|
||||
App.Lock(false, false);
|
||||
}
|
||||
}, OnFinishToRun);
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace keepass2android
|
||||
_editGroup.App.DirtyGroups.Add(_editGroup.Group.ParentGroup);
|
||||
} else
|
||||
{
|
||||
_editGroup._app.Lock(false);
|
||||
_editGroup._app.Lock(false, false);
|
||||
}
|
||||
|
||||
base.Run();
|
||||
|
||||
Reference in New Issue
Block a user