From 06f6f9e0d79413aa71f0144f073e8cede8f5627f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kamo=C5=84?= <70628259+mkamonMdt@users.noreply.github.com> Date: Mon, 23 Nov 2020 08:37:39 +0100 Subject: [PATCH] [EGD-4475] ScreenlockCheckEvent handler bug fix (#1062) --- changelog.md | 4 ++++ module-apps/application-desktop/ApplicationDesktop.cpp | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 91a114e82d8e44739c3d0e91f77c64a31e5d8308..0b0b353848b16a51efc60c9f5eb0c6a07ebec80e 100644 --- a/changelog.md +++ b/changelog.md @@ -7,6 +7,10 @@ * `[gui][desktop]` Added SIM PIN basic flow implementation * `[cellular]` Added CLIR, CLIP, COLP, call waiting MMI support +### Fixed + +* `[desktop]` Fixed ScreenlockCheckEvent handler + ## [0.47.1 2020-11-20] ### Added diff --git a/module-apps/application-desktop/ApplicationDesktop.cpp b/module-apps/application-desktop/ApplicationDesktop.cpp index c0e055ae09e852e7e405394fe04cdbe22a0c181a..2a06fb0f305bbf6c5e7fa51c9699e652132a5baf 100644 --- a/module-apps/application-desktop/ApplicationDesktop.cpp +++ b/module-apps/application-desktop/ApplicationDesktop.cpp @@ -123,8 +123,7 @@ namespace app auto ApplicationDesktop::handle(sdesktop::developerMode::ScreenlockCheckEvent *event) -> bool { if (event != nullptr) { - auto event = - std::make_unique(true); // lockHandler.lock.isLocked()); + auto event = std::make_unique(lockHandler.isScreenLocked()); auto msg = std::make_shared(std::move(event)); sys::Bus::SendUnicast(std::move(msg), service::name::service_desktop, this); }