mirror of
https://github.com/home-assistant/android
synced 2024-10-06 16:19:38 +00:00
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:
parent
8b32f9bffd
commit
87042137a4
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue