~aleteoryx/muditaos

0276dedc6f26e127658a63b63a6e16916f6c34b9 — Marcin Zieliński 3 years ago dce833e
[MOS-753] SIM reinsertion case in SIM Settings

Handling the case when the user during PIN changing
or turning the PIN on/off puts the SIM tray out and
shortly after back in. In such a case, the Settings
application now goes to the 'SIM cards' window
instead of 'PIN settings'.
1 files changed, 2 insertions(+), 1 deletions(-)

M module-apps/application-settings/ApplicationSettings.cpp
M module-apps/application-settings/ApplicationSettings.cpp => module-apps/application-settings/ApplicationSettings.cpp +2 -1
@@ 589,7 589,8 @@ namespace app

        // despite "import_contacts" has auto-lock prevented, it's included here in previousWindowBackingToSimCards for
        // simplicity
        if (currentWindowName == phone_lock_window && previousWindowBackingToSimCards) {
        if ((currentWindowName == phone_lock_window || currentWindowName == sim_unlock_window) &&
            previousWindowBackingToSimCards) {
            switchWindow(sim_cards);
            return;
        }