~aleteoryx/muditaos

6346d9fd9cf81b5eb24a84cdf0bd412a12505c9e — Pawel Olejniczak 3 years ago 81a3409
[MOS-76] Add missing space in the separator

Days of the week should be separated by
a comma and a space in the alarm repeat widget
M module-apps/application-alarm-clock/models/NewEditAlarmModel.cpp => module-apps/application-alarm-clock/models/NewEditAlarmModel.cpp +2 -2
@@ 19,8 19,8 @@ namespace app::alarmClock
                                         std::shared_ptr<SoundsPlayer> player,
                                         std::shared_ptr<alarmClock::AlarmRRulePresenter> rRulePresenter,
                                         std::shared_ptr<AbstractAlarmsRepository> alarmsRepository)
        : application(app), alarmsRepository{std::move(alarmsRepository)}, soundsPlayer(player),
          rRulePresenter(rRulePresenter)
        : application(app), alarmsRepository{std::move(alarmsRepository)}, soundsPlayer(std::move(player)),
          rRulePresenter(std::move(rRulePresenter))
    {}

    unsigned int NewEditAlarmModel::requestRecordsCount()

M module-apps/application-alarm-clock/presenter/AlarmRRulePresenter.cpp => module-apps/application-alarm-clock/presenter/AlarmRRulePresenter.cpp +5 -4
@@ 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 "AlarmRRulePresenter.hpp"


@@ 6,7 6,8 @@

namespace app::alarmClock
{
    AlarmRRulePresenter::AlarmRRulePresenter(std::shared_ptr<AlarmEventRecord> recordToLoad) : alarm(recordToLoad)
    AlarmRRulePresenter::AlarmRRulePresenter(std::shared_ptr<AlarmEventRecord> recordToLoad)
        : alarm(std::move(recordToLoad))
    {}

    void AlarmRRulePresenter::loadRecord(std::shared_ptr<AlarmEventRecord> recordToLoad)


@@ 63,11 64,11 @@ namespace app::alarmClock
            for (unsigned int i = 0; i < utl::num_days; ++i) {
                if ((0x1 & (setDays >> i)) != 0) {
                    auto dayname = utils::time::Locale::get_short_day(i);
                    retval += dayname + ",";
                    retval += dayname + ", ";
                }
            }
            if (retval.length() > 0) {
                retval.removeChar(retval.length() - 1);
                retval.removeChar(retval.length() - 2);
            }
        }
        return retval;