~aleteoryx/muditaos

34485ba10d545a11cf8e27ee034e990d64d636ac — Lefucjusz 2 years ago 82e0c6d
[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.
1 files changed, 1 insertions(+), 1 deletions(-)

M products/PurePhone/services/appmgr/ApplicationManager.cpp
M products/PurePhone/services/appmgr/ApplicationManager.cpp => products/PurePhone/services/appmgr/ApplicationManager.cpp +1 -1
@@ 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;
        }