~aleteoryx/muditaos

2bdb1c750e62049216972c727142f7889f1ec785 — Adam Wulkiewicz 3 years ago 006d210
[BH-1582] Fix alarm edit inactivity handling

Add missing timer start in entry event handler
M harmony_changelog.md => harmony_changelog.md +1 -0
@@ 6,6 6,7 @@
* Fixed displayed device name when connected to Windows
* Fixed the wrong front light on back action in alarms
* Fixed the pause deactivation by a deep press in relaxation
* Fixed canceling of alarm editing after 10s of inactivity

### Added


M products/BellHybrid/apps/application-bell-main/presenters/StateController.cpp => products/BellHybrid/apps/application-bell-main/presenters/StateController.cpp +2 -1
@@ 1,4 1,4 @@
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "application-bell-main/presenters/HomeScreenPresenter.hpp"


@@ 160,6 160,7 @@ namespace app::home_screen
                [](AbstractView &view, AbstractPresenter &presenter, AbstractTemperatureModel &temperatureModel) {
                    view.setViewState(ViewState::AlarmEdit);
                    view.setTemperature(temperatureModel.getTemperature());
                    presenter.spawnTimer(defaultAlarmSetTime);
                };
            auto exit = [](AbstractView &view, AbstractPresenter &presenter) { presenter.detachTimer(); };