~aleteoryx/muditaos

0de8e81a0c8d43a4c3e2aafde9343674f9b51a5c — Maciej Gibowicz 1 year, 7 months ago 3f5c69b
[BH-2025] Add alarm handling in What`s new application

When the alarm rings during the What`s new application, the system
handles the alarm and closes the current application. After the alarm
ends, we go to the main application without showing any more new
features.
M products/BellHybrid/apps/application-bell-whats-new/ApplicationWhatsNew.cpp => products/BellHybrid/apps/application-bell-whats-new/ApplicationWhatsNew.cpp +8 -0
@@ 31,6 31,14 @@ namespace app
        cpuSentinel->BlockWfiMode(false);
    }

    sys::MessagePointer ApplicationWhatsNew::handleAppClose(sys::Message *msgl)
    {
        if (featuresModel != nullptr) {
            featuresModel->setCurrentOsVersion();
        }
        return ApplicationCommon::handleAppClose(msgl);
    }

    sys::ReturnCodes ApplicationWhatsNew::InitHandler()
    {
        auto ret = Application::InitHandler();

M products/BellHybrid/apps/application-bell-whats-new/include/application-bell-whats-new/ApplicationWhatsNew.hpp => products/BellHybrid/apps/application-bell-whats-new/include/application-bell-whats-new/ApplicationWhatsNew.hpp +1 -0
@@ 36,6 36,7 @@ namespace app
        void createUserInterface() override;
        void destroyUserInterface() override
        {}
        sys::MessagePointer handleAppClose(sys::Message *msgl) override;

        sys::MessagePointer DataReceivedHandler(sys::DataMessage *msgl, sys::ResponseMessage *resp) override;