~aleteoryx/muditaos

082966f9aff05b48009499a1d9b6290b497d5a82 — Pawel Olejniczak 4 years ago 98db8f1
[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.
1 files changed, 6 insertions(+), 1 deletions(-)

M module-apps/application-phonebook/windows/PhonebookIceContacts.cpp
M module-apps/application-phonebook/windows/PhonebookIceContacts.cpp => module-apps/application-phonebook/windows/PhonebookIceContacts.cpp +6 -1
@@ 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 <service-db/DBNotificationMessage.hpp>



@@ 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);
    }