~aleteoryx/muditaos

d13042d819d76ea03fd450b33d6f4dfc848b2534 — rrandomsky 2 years ago ebcd139
[MOS-994] Fix redirection to dial number view by pressing BACK from add new number view

Fix for inconsistent redirection when the user dial number from home screen and
want to save it but instead of save the user click BACK
to go to screen with dialed number
M module-apps/application-call/ApplicationCall.cpp => module-apps/application-call/ApplicationCall.cpp +4 -3
@@ 285,15 285,16 @@ namespace app
        auto searchResults = DBServiceAPI::MatchContactByPhoneNumber(this, numberView);
        if (searchResults != nullptr && !searchResults->isTemporary()) {
            LOG_INFO("Found contact matching (non temporary) search num : contact ID %" PRIu32, searchResults->ID);
            app::manager::Controller::sendAction(this,
                                                 app::manager::actions::EditContact,
                                                 std::make_unique<PhonebookItemData>(std::move(searchResults)));
            auto data                     = std::make_unique<PhonebookItemData>(std::move(searchResults));
            data->nameOfSenderApplication = GetName();
            app::manager::Controller::sendAction(this, app::manager::actions::EditContact, std::move(data));
        }
        else {
            auto contactRecord = std::make_shared<ContactRecord>();
            contactRecord->numbers.emplace_back(std::move(numberView));

            auto data                        = std::make_unique<PhonebookItemData>(std::move(contactRecord));
            data->nameOfSenderApplication    = GetName();
            data->ignoreCurrentWindowOnStack = true;
            app::manager::Controller::sendAction(
                this, manager::actions::AddContact, std::move(data), manager::OnSwitchBehaviour::RunInBackground);

M module-apps/application-phonebook/windows/PhonebookNewContact.cpp => module-apps/application-phonebook/windows/PhonebookNewContact.cpp +1 -0
@@ 132,6 132,7 @@ namespace gui

            newContactModel->saveData(contact);
            verifyAndSave();
            return true;
        }
        else if (!inputEvent.isShortRelease(KeyCode::KEY_RF) || !shouldCurrentAppBeIgnoredOnSwitchBack()) {
            return AppWindow::onInput(inputEvent);

M pure_changelog.md => pure_changelog.md +1 -0
@@ 46,6 46,7 @@
* Fixed MTP availability only after phone unlocked
* Fixed a ghost call after quick click back key to end a call after start a call
* Fixed autofill data during adding previously deleted phone number from dialing window
* Fixed redirection to dial number view by pressing BACK from add new number view

## [1.7.0 2023-03-23]
### Changed / Improved