~aleteoryx/muditaos

63210e9b6c6579dcbefd1048dc51bcc6df055f2b — Tigran Soghbatyan 4 years ago 5753c63
[BH-1060] Fix alarm summary display duration

Extend alarm summary display duration from 3s to 5s
M products/BellHybrid/apps/application-bell-alarm/windows/BellAlarmSetWindow.cpp => products/BellHybrid/apps/application-bell-alarm/windows/BellAlarmSetWindow.cpp +2 -1
@@ 14,7 14,8 @@ namespace gui
{
    BellAlarmSetWindow::BellAlarmSetWindow(app::ApplicationCommon *app,
                                           std::shared_ptr<app::bell_alarm::BellAlarmSetContract::Presenter> presenter)
        : WindowWithTimer(app, gui::window::name::bellAlarmSet), presenter{std::move(presenter)}
        : WindowWithTimer(app, gui::window::name::bellAlarmSet, alarmSummaryDisplayDuration), presenter{
                                                                                                  std::move(presenter)}
    {
        buildInterface();
    }

M products/BellHybrid/apps/application-bell-alarm/windows/BellAlarmSetWindow.hpp => products/BellHybrid/apps/application-bell-alarm/windows/BellAlarmSetWindow.hpp +1 -0
@@ 24,6 24,7 @@ namespace gui
        void onBeforeShow(ShowMode mode, SwitchData *data) override;

      private:
        constexpr static auto alarmSummaryDisplayDuration = std::chrono::seconds{5};
        std::shared_ptr<app::bell_alarm::BellAlarmSetContract::Presenter> presenter;
        Icon *icon{};
    };