From 082966f9aff05b48009499a1d9b6290b497d5a82 Mon Sep 17 00:00:00 2001 From: Pawel Olejniczak Date: Tue, 15 Feb 2022 16:00:06 +0100 Subject: [PATCH] [MOS-36] Disallow going to normal contact list after emergency call User was able to get to the regular contact list and manipulate it on locked phone after emergency call. Now user is moved outside contacts app after going back from ICE contact list. --- .../application-phonebook/windows/PhonebookIceContacts.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module-apps/application-phonebook/windows/PhonebookIceContacts.cpp b/module-apps/application-phonebook/windows/PhonebookIceContacts.cpp index ffeaa2d2b3461e823ffbcbbc50dc05300d85c289..d75597d439fa65be3cca11354457d6d9b330ba90 100644 --- a/module-apps/application-phonebook/windows/PhonebookIceContacts.cpp +++ b/module-apps/application-phonebook/windows/PhonebookIceContacts.cpp @@ -1,9 +1,10 @@ -// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. +// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "PhonebookIceContacts.hpp" #include "application-phonebook/ApplicationPhonebook.hpp" #include "application-phonebook/data/PhonebookStyle.hpp" +#include "service-appmgr/Controller.hpp" #include @@ -58,6 +59,10 @@ namespace gui if (inputEvent.isShortRelease(KeyCode::KEY_ENTER)) { return true; } + if (inputEvent.isShortRelease(KeyCode::KEY_RF)) { + app::manager::Controller::switchBack(application); + return true; + } // check if any of the lower inheritance onInput methods catch the event return AppWindow::onInput(inputEvent); }