M module-apps/apps-common/widgets/AlarmSetSpinner.cpp => module-apps/apps-common/widgets/AlarmSetSpinner.cpp +1 -2
@@ 1,9 1,8 @@
-// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
+// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "AlarmSetSpinner.hpp"
#include <FontManager.hpp>
-#include <RawFont.hpp>
#include <gui/widgets/text/Label.hpp>
#include <gui/widgets/ImageBox.hpp>
#include <apps-common/widgets/TimeSetFmtSpinner.hpp>
M module-gui/gui/widgets/Item.cpp => module-gui/gui/widgets/Item.cpp +3 -3
@@ 1,4 1,4 @@
-// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
+// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "Item.hpp"
@@ 9,6 9,7 @@
#include <list> // for list<>::iterator, list, operator!=, _List...
#include <memory>
#include <DrawCommand.hpp>
+
namespace gui
{
@@ 558,5 559,4 @@ namespace gui
{
visitor.visit(*this);
}
-
-} /* namespace gui */
+} // namespace gui
M products/BellHybrid/apps/common/src/layouts/HomeScreenLayoutClassic.cpp => products/BellHybrid/apps/common/src/layouts/HomeScreenLayoutClassic.cpp +16 -12
@@ 252,20 252,24 @@ namespace gui
{
switch (mode) {
case ScreenViewMode::Main:
- lowBatteryWarning->setVisible(false);
- firstBox->setVisible(true);
- firstBox->informContentChanged();
- lastBox->setVisible(true);
- lastBox->informContentChanged();
- centerBox->setVisible(true);
- centerBox->informContentChanged();
+ if (lowBatteryWarning->visible) {
+ lowBatteryWarning->setVisible(false);
+ firstBox->setVisible(true);
+ firstBox->informContentChanged();
+ lastBox->setVisible(true);
+ lastBox->informContentChanged();
+ centerBox->setVisible(true);
+ centerBox->informContentChanged();
+ }
break;
case ScreenViewMode::Warning:
- firstBox->setVisible(false);
- lastBox->setVisible(false);
- centerBox->setVisible(false);
- lowBatteryWarning->setVisible(true);
- lowBatteryWarning->informContentChanged();
+ if (!lowBatteryWarning->visible) {
+ firstBox->setVisible(false);
+ lastBox->setVisible(false);
+ centerBox->setVisible(false);
+ lowBatteryWarning->setVisible(true);
+ lowBatteryWarning->informContentChanged();
+ }
break;
}
}