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

Commit 6e5956eb authored by David Braun's avatar David Braun Committed by Android (Google) Code Review
Browse files

Merge "Default SMS app setting should still be shown even if SIM is removed." into klp-dev

parents ff75201a d5b60019
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -247,12 +247,7 @@ public class WirelessSettings extends RestrictedSettingsFragment

    private boolean isSmsSupported() {
        // Some tablet has sim card but could not do telephony operations. Skip those.
        if (mTm.getPhoneType() == TelephonyManager.PHONE_TYPE_NONE) {
            return false;
        }
        int simState = mTm.getSimState();
        return simState != TelephonyManager.SIM_STATE_ABSENT &&
                simState != TelephonyManager.SIM_STATE_UNKNOWN;
        return (mTm.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE);
    }

    @Override