mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-05 20:39:11 -05:00
Fix of the bug that after selecting SIM slot in which there's no card and trying to enter PIN settings menu phone was getting stuck in infinite looping between PIN settings window and 'Cannot connect to SIM card' popup.
28 lines
1.1 KiB
C++
28 lines
1.1 KiB
C++
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include <application-settings/windows/BaseSettingsWindow.hpp>
|
|
#include <application-settings/presenter/network/SimPINSettingsPresenter.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class SimPINSettingsWindow : public BaseSettingsWindow, public SimPINSettingsWindowContract::View
|
|
{
|
|
public:
|
|
explicit SimPINSettingsWindow(app::ApplicationCommon *app,
|
|
std::unique_ptr<SimPINSettingsWindowContract::Presenter> simPINPresenter);
|
|
|
|
private:
|
|
auto buildOptionsList() -> std::list<Option> override;
|
|
void onBeforeShow(ShowMode mode, SwitchData *data) override;
|
|
void setNavbarCenterActive(bool state) override;
|
|
void setTitle(const UTF8 &text) override;
|
|
void refreshOptionsList() override;
|
|
|
|
std::unique_ptr<SimPINSettingsWindowContract::Presenter> presenter;
|
|
OptionWindowDestroyer rai_destroyer = OptionWindowDestroyer(*this);
|
|
};
|
|
} // namespace gui
|