~aleteoryx/muditaos

bc9c4ce05288c05323e030444c86a30212cfa4a0 — Adam Dobrowolski 4 years ago 04111a6
[EGD-8014] No popup will be shown on Language selection

This wouldn't affect battery as it's not an popup but action
1 files changed, 6 insertions(+), 1 deletions(-)

M module-apps/application-onboarding/ApplicationOnBoarding.cpp
M module-apps/application-onboarding/ApplicationOnBoarding.cpp => module-apps/application-onboarding/ApplicationOnBoarding.cpp +6 -1
@@ 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 "ApplicationOnBoarding.hpp"


@@ 15,6 15,7 @@
#include "windows/SkipDialogWindow.hpp"
#include "windows/OnBoardingDateAndTimeWindow.hpp"
#include "windows/OnBoardingChangeDateAndTimeWindow.hpp"
#include "WindowsPopupFilter.hpp"

#include <application-settings/windows/system/ChangeTimeZone.hpp>
#include <apps-common/locks/data/PhoneLockMessages.hpp>


@@ 42,6 43,10 @@ namespace app
        bus.channels.push_back(sys::BusChannel::ServiceDBNotifications);
        bus.channels.push_back(sys::BusChannel::PhoneLockChanges);
        bus.channels.push_back(sys::BusChannel::ServiceCellularNotifications);

        getPopupFilter().addAppDependentFilter([&](const gui::PopupRequestParams & /*popupParams*/) {
            return gui::name::window::main_window != getCurrentWindow()->getName();
        });
    }

    // Invoked upon receiving data message