Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2407f2d8 authored by Sooraj Sasindran's avatar Sooraj Sasindran Committed by Linux Build Service Account
Browse files

MSIM: Display SIM info even if APM is on

If device is in APM, then display the sim info and disable
button to activate/deactivate sim.

CRs-Fixed: 910841
Change-Id: Id4726f9f45eab2b813d7d4a448d9edae4a1bfe2e
parent 3d755752
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -475,6 +475,14 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
            update();
            // now use other config screen to active/deactive sim card\
            mSwitch.setVisibility(mSwitchVisibility);

            // Disable manual provisioning option to user when
            // device is in Airplane mode.
            if (isAirplaneModeOn()) {
                mSwitch.setEnabled(false);
            } else {
                mSwitch.setEnabled(true);
            }
        }

        @Override
@@ -511,7 +519,7 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
        // Preference screen has a valid SIM and slot index/SubId.
        private boolean isCurrentSubValid() {
            boolean isSubValid = false;
            if (!isAirplaneModeOn() && hasCard()) {
            if (hasCard()) {
                List<SubscriptionInfo> sirList =
                        mSubscriptionManager.getActiveSubscriptionInfoList();
                if (sirList != null ) {