~aleteoryx/muditaos

9344ca0becc4f6c525f46818d2d0574ed7ed8aae — Dawid Wojtas 3 years ago 50b44a6
[BH-1601] Fix back button behavior in Relaxation

If the user clicks the back button in the pause
state the user will be switched to the menu with songs.
M harmony_changelog.md => harmony_changelog.md +1 -0
@@ 8,6 8,7 @@

* Fixed resetting meditation settings with deep press.
* Fixed bedside lamp in alarm application
* Fixed back button behavior in Relaxation

### Added
#### PowerNap:

M products/BellHybrid/apps/application-bell-background-sounds/windows/BGSoundsPausedWindow.cpp => products/BellHybrid/apps/application-bell-background-sounds/windows/BGSoundsPausedWindow.cpp +6 -1
@@ 1,4 1,4 @@
// 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 "BGSoundsPausedWindow.hpp"


@@ 42,6 42,11 @@ namespace gui
            application->returnToPreviousWindow();
            return true;
        }

        if (inputEvent.isShortRelease(KeyCode::KEY_RF)) {
            application->switchWindow(gui::name::window::main_window);
            return true;
        }
        return AppWindow::onInput(inputEvent);
    }
} // namespace gui