~aleteoryx/muditaos

5c2032ae929d48b62c2bcd9c0a27a38970350bfb — Maciej-Mudita 3 years ago 2f4976e
[MOS-836] Fix for selecting SIM during onboarding

After inserting the SIM tray at the onboarding stage
before selecting the slot - it is not possible to select
the slot and activate the desired SIM card if it does not
have a PIN enabled.
1 files changed, 3 insertions(+), 1 deletions(-)

M module-apps/application-onboarding/ApplicationOnBoarding.cpp
M module-apps/application-onboarding/ApplicationOnBoarding.cpp => module-apps/application-onboarding/ApplicationOnBoarding.cpp +3 -1
@@ 105,7 105,9 @@ namespace app
        });

        connect(typeid(cellular::msg::notification::SimReady), [&](sys::Message *msg) {
            if (getCurrentWindow()->getName() != gui::popup::window::sim_switching_window) {
            auto selectedSIM = Store::GSM::get()->selected;
            if (getCurrentWindow()->getName() != gui::popup::window::sim_switching_window &&
                selectedSIM != Store::GSM::SelectedSIM::NONE) {
                phoneLockSubject.setPhoneLock();
                return sys::msgHandled();
            }