From 34485ba10d545a11cf8e27ee034e990d64d636ac Mon Sep 17 00:00:00 2001 From: Lefucjusz Date: Mon, 19 Dec 2022 16:08:18 +0100 Subject: [PATCH] [MOS-852] Fix autolock not working in UDM version Fix of the issue that in some cases phone wouldn't lock automatically after given timeout. This is not a proper fix, rather a workaround, the whole autolock mechanism should get refactored to support testing via harness. --- products/PurePhone/services/appmgr/ApplicationManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/products/PurePhone/services/appmgr/ApplicationManager.cpp b/products/PurePhone/services/appmgr/ApplicationManager.cpp index f15ea5cf814f05d7543d24ef156991c08ae1fd9e..37244d99eaa500f7ed8cf0dbff25edb19983b441 100644 --- a/products/PurePhone/services/appmgr/ApplicationManager.cpp +++ b/products/PurePhone/services/appmgr/ApplicationManager.cpp @@ -526,7 +526,7 @@ namespace app::manager autoLockTimer.stop(); return; } - if (auto focusedApp = getFocusedApplication(); focusedApp == nullptr || focusedApp->preventsAutoLocking()) { + if (const auto focusedApp = getFocusedApplication(); (focusedApp == nullptr) || focusedApp->preventsAutoLocking()) { autoLockTimer.start(); return; }