~aleteoryx/muditaos

f82a19bf906420327e4938a39af02f213c565442 — Paweł Joński 3 years ago 88e410e
[BH-1463] Bedtime reminder regression fix

Bedtime reminder will popup on homescreen again
1 files changed, 7 insertions(+), 2 deletions(-)

M products/BellHybrid/apps/application-bell-main/ApplicationBellMain.cpp
M products/BellHybrid/apps/application-bell-main/ApplicationBellMain.cpp => products/BellHybrid/apps/application-bell-main/ApplicationBellMain.cpp +7 -2
@@ 28,6 28,7 @@
#include <apps-common/WindowsPopupFilter.hpp>
#include <common/windows/BellTurnOffWindow.hpp>
#include <WindowsStack.hpp>
#include <popups/Popups.hpp>

namespace app
{


@@ 39,8 40,12 @@ namespace app
                                             std::uint32_t stackDepth)
        : Application(name, parent, statusIndicators, startInBackground, stackDepth)
    {
        getPopupFilter().addAppDependentFilter([&](const gui::PopupRequestParams &) {
            return gui::name::window::main_window != getCurrentWindow()->getName();
        getPopupFilter().addAppDependentFilter([&](const gui::PopupRequestParams &params) {
            const auto popupId = params.getPopupId();
            if (popupId == gui::popup::ID::Alarm) {
                return gui::name::window::main_window != getCurrentWindow()->getName();
            }
            return true;
        });

        bus.channels.push_back(sys::BusChannel::ServiceDBNotifications);