~aleteoryx/muditaos

d966f57a6b3c21da8660e612b4a714393cf9ff0a — Maciej-Mudita 3 years ago f68b6b4
[MOS-722] Fix time disappearing in SMS thread

When the width of the box with the currently read SMS changed,
the label with the time of receiving the message disappeared.
2 files changed, 10 insertions(+), 1 deletions(-)

M module-apps/application-messages/widgets/SMSOutputWidget.cpp
M pure_changelog.md
M module-apps/application-messages/widgets/SMSOutputWidget.cpp => module-apps/application-messages/widgets/SMSOutputWidget.cpp +9 -1
@@ 1,4 1,4 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "ApplicationMessages.hpp"


@@ 94,6 94,14 @@ namespace gui
            return false;
        };

        smsBubble->dimensionChangedCallback = [this](gui::Item &, const BoundingBox &newDim) -> bool {
            if (timeLabel != nullptr) {
                timeLabel->setVisible(focus);
                positionTimeLabel();
            }
            return true;
        };

        dimensionChangedCallback = [&](gui::Item &, const BoundingBox &newDim) -> bool {
            body->setArea({0, 0, newDim.w, newDim.h});


M pure_changelog.md => pure_changelog.md +1 -0
@@ 41,6 41,7 @@
* Fixed notifications of unread SMS threads on the home screen
* Fixed false dotted notification above Calls app in case of answered call
* Fixed broken French translation on 'Configure passcode' screen in Onboarding
* Fixed time disappearing in SMS thread

### Added