~aleteoryx/muditaos

07fb74f1712d2610d8ee891b0234825f846143e8 — Dawid Wojtas 3 years ago 624fa28
[BH-1618] Fix the wrong front light on the back action

If the user changes the front light intensity in
pre-wake up or main alarm and then going back
the front light value and intensity are the same.
M harmony_changelog.md => harmony_changelog.md +1 -0
@@ 4,6 4,7 @@

### Fixed
* Fixed displayed device name when connected to Windows
* Fixed the wrong front light on back action in alarms

### Added


M products/BellHybrid/apps/application-bell-settings/models/alarm_settings/AlarmSettingsListItemProvider.cpp => products/BellHybrid/apps/application-bell-settings/models/alarm_settings/AlarmSettingsListItemProvider.cpp +2 -3
@@ 97,10 97,9 @@ namespace app::bell_settings
            }
        });

        brightness->onEnter = [this]() {
            auto brightness = settingsModel.getBrightness().getValue();
        brightness->onEnter = [this, brightness]() {
            if (onFrontlightEnter) {
                onFrontlightEnter(brightness);
                onFrontlightEnter(brightness->value());
            }
        };


M products/BellHybrid/apps/application-bell-settings/models/alarm_settings/PrewakeUpListItemProvider.cpp => products/BellHybrid/apps/application-bell-settings/models/alarm_settings/PrewakeUpListItemProvider.cpp +2 -3
@@ 130,10 130,9 @@ namespace app::bell_settings
            }
        });

        brightness->onEnter = [this]() {
            auto brightness = settingsModel.getBrightness().getValue();
        brightness->onEnter = [this, brightness]() {
            if (onFrontlightEnter) {
                onFrontlightEnter(brightness);
                onFrontlightEnter(brightness->value());
            }
        };