~aleteoryx/muditaos

5ff78e4a6ccc0f2b75dc95b996a81dafcd459d9a — Marcin Zieliński 2 years ago cd54ba0
[MOS-357] Reverting regression

Reverts only the direct cause of a regression spotted and the changelog item.
2 files changed, 0 insertions(+), 12 deletions(-)

M module-apps/application-phonebook/windows/PhonebookNewContact.cpp
M pure_changelog.md
M module-apps/application-phonebook/windows/PhonebookNewContact.cpp => module-apps/application-phonebook/windows/PhonebookNewContact.cpp +0 -11
@@ 10,7 10,6 @@
#include <Dialog.hpp>
#include <service-db/DBServiceAPI.hpp>
#include <messages/DialogMetadataMessage.hpp>
#include <service-appmgr/Controller.hpp>

namespace gui
{


@@ 121,16 120,6 @@ namespace gui

    auto PhonebookNewContact::onInput(const InputEvent &inputEvent) -> bool
    {
        auto backToCallLogIfCameFromThere = [this]() {
            // MOS-357: conditionally (@see ApplicationManagerCommon::handleSwitchBack) return to call log
            return app::manager::Controller::switchBack(
                application, std::make_unique<app::manager::SwitchBackRequest>("ApplicationCallLog", nullptr, true));
        };

        if (inputEvent.isShortRelease(gui::KeyCode::KEY_RF)) {
            return backToCallLogIfCameFromThere();
        }

        auto ret = AppWindow::onInput(inputEvent);

        setSaveButtonVisible(!newContactModel->emptyData());

M pure_changelog.md => pure_changelog.md +0 -1
@@ 87,7 87,6 @@
* Fixed missing translation for words "show" and "replace"
* Fixed music playback disablement after currently played audio file gets deleted
* Fixed incorrectly displayed Swedish translations in Onboarding
* Fixed going back to wrong window after confirming or cancelling creation of new contact from call log
* Fixed missing "No calls yet" text in call log
* Fixed phonebook is not handling database notification about contacts action done by Center
* Fixed contact deleted via Center cannot be edited by Phonebook app and saved again