Fix app lock 'retry' unlocking app (#3507)

- Only change the time for when the session expires if the app is in use, otherwise the new session expires timestamp might unlock the app
This commit is contained in:
Joris Pelgröm 2023-05-13 04:39:56 +02:00 committed by GitHub
parent 8b32f9bffd
commit 87042137a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -377,7 +377,7 @@ class IntegrationRepositoryImpl @AssistedInject constructor(
}
override suspend fun setAppActive(active: Boolean) {
if (!active) {
if (!active && appActive) {
setSessionExpireMillis(System.currentTimeMillis() + (getSessionTimeOut() * 1000) + APPLOCK_TIMEOUT_GRACE_MS)
}
Log.d(TAG, "setAppActive(): $active")