~aleteoryx/muditaos

8f420ecbf129cac7213e6d48aac4734430e4fc8e — Adam Wulkiewicz 3 years ago 49bbaf5
[BH-1581] Prevent meditation settings reset with deep press

Set all settings values each time a value is changed instead of doing
it after pressing enter and moving to the next settings page.
M harmony_changelog.md => harmony_changelog.md +2 -0
@@ 6,6 6,8 @@

### Fixed

* Fixed resetting meditation settings with deep press.

### Added
#### PowerNap:
* New circular progress bar 

M products/BellHybrid/apps/application-bell-meditation-timer/presenter/SettingsPresenter.cpp => products/BellHybrid/apps/application-bell-meditation-timer/presenter/SettingsPresenter.cpp +4 -0
@@ 73,11 73,15 @@ namespace app::meditation
                                     utils::translate("app_bell_meditation_chime_interval"),
                                     utils::translate("app_bell_meditation_chime_interval_bottom")};

        chimeInterval->set_on_value_change_cb([this](const auto &val) { this->chimeIntervalModel.setValue(val); });

        auto startDelay = new list_items::StartDelay{list_items::StartDelay::spinner_type::range{0, 90, 10},
                                                     startDelayModel,
                                                     utils::translate("app_bell_meditation_start_delay"),
                                                     utils::translate("common_second_lower")};

        startDelay->set_on_value_change_cb([this](const auto &val) { this->startDelayModel.setValue(val); });

        auto chimeVolume = new list_items::Numeric{list_items::Numeric::spinner_type::range{1, 10, 1},
                                                   chimeVolumeModel,
                                                   utils::translate("app_bell_meditation_chime_volume")};