~aleteoryx/muditaos

aee113ac1e0d0ef7520f43e6a3510b5a8bc8bb40 — Maciej-Mudita 2 years ago d7115fe
[MOS-60] Fix displaying an incorrect window after ending a call

After quick dobule "END CALL" selection, the window
for adding a contact is displayed for a while.
2 files changed, 5 insertions(+), 3 deletions(-)

M module-apps/application-call/windows/CallWindow.cpp
M pure_changelog.md
M module-apps/application-call/windows/CallWindow.cpp => module-apps/application-call/windows/CallWindow.cpp +4 -3
@@ 162,13 162,14 @@ namespace gui
    bool CallWindow::onInput(const InputEvent &inputEvent)
    {
        bool handled = false;
        const auto keyCode = inputEvent.getKeyCode();

        // process only if key is released
        // InputEvent::State::keyReleasedLong is necessary for KeyCode::KEY_RF to properly abort the active call
        if (inputEvent.isKeyRelease()) {
            LOG_INFO("key released");
            auto code = translator.handle(inputEvent.getRawKey(), InputMode({InputMode::phone}).get());
            switch (inputEvent.getKeyCode()) {
            const auto code = translator.handle(inputEvent.getRawKey(), InputMode({InputMode::phone}).get());
            switch (keyCode) {
            case KeyCode::KEY_LF:
                handled = presenter->handleLeftButton();
                break;


@@ 191,7 192,7 @@ namespace gui
            return true;
        }
        else {
            return AppWindow::onInput(inputEvent);
            return keyCode == KeyCode::KEY_RF ? true : AppWindow::onInput(inputEvent);
        }
    }


M pure_changelog.md => pure_changelog.md +1 -0
@@ 53,6 53,7 @@
* Fixed improper font weight used in navbar
* Fix for country code in new contact based on deleted one
* Fixed the data displayed on snoozed alarms screen
* Fixed displaying an incorrect window after double ending a phone call

## [1.5.0 2022-12-20]