~aleteoryx/muditaos

bf730d43d9087f3e9a437d36f7cf6280ceb01f57 — Jakub Pyszczak 5 years ago ffc17e7
[EGD-5438] Fix returning from ice contacts window

Returning from ice contacts window goes back
to the contacts instead of previous used window.
1 files changed, 4 insertions(+), 1 deletions(-)

M module-apps/application-call/windows/EmergencyCallWindow.cpp
M module-apps/application-call/windows/EmergencyCallWindow.cpp => module-apps/application-call/windows/EmergencyCallWindow.cpp +4 -1
@@ 30,7 30,10 @@ namespace gui
    bool EmergencyCallWindow::onInput(const InputEvent &inputEvent)
    {
        if (inputEvent.is(gui::KeyCode::KEY_ENTER)) {
            app::manager::Controller::sendAction(application, app::manager::actions::ShowEmergencyContacts);
            auto data                        = std::make_unique<gui::SwitchData>();
            data->ignoreCurrentWindowOnStack = true;
            app::manager::Controller::sendAction(
                application, app::manager::actions::ShowEmergencyContacts, std::move(data));
            return true;
        }