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

Commit ca089910 authored by Sridhar Kasukurthi's avatar Sridhar Kasukurthi Committed by Gerrit - the friendly Code Review server
Browse files

Do not display No SIM when sim info not available

*Display No Service instead of No SIM
*Remove carrier specific conditions

Change-Id: I8630b2a369f7e3cb21f50b2483cb9c91bd8ad74c
CRs-Fixed: 1042831
parent a3238fe9
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ public class CarrierText extends TextView {
        boolean showLocale = getContext().getResources().getBoolean(
                com.android.internal.R.bool.config_monitor_locale_change);
        CharSequence displayText = null;
        String carrier = "405854";

        List<SubscriptionInfo> subs = mKeyguardUpdateMonitor.getSubscriptionInfo(false);
        final int N = subs.size();
        if (DEBUG) Log.d(TAG, "updateCarrierText(): " + N);
@@ -167,8 +167,7 @@ public class CarrierText extends TextView {
        // in SIM_STATE_ABSENT,set displayText as "NO SERVICE".
        // displayText will be overrided after the Subscription infos are available and
        // displayText is set according to the SIM Status.
        String property = SystemProperties.get("persist.radio.atel.carrier");
            if (N == 0 && carrier.equals(property)) {
        if (N == 0) {
                 boolean isSimAbsent = false;
                 for (int i = 0; i < TelephonyManager.getDefault().getSimCount(); i++) {
                      if (TelephonyManager.getDefault().getSimState(i)