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

Commit f8b05126 authored by Rakesh Pallerla's avatar Rakesh Pallerla
Browse files

Update Signal Strength on sim state change.

Update Signal Strength on sim state change, so that when
SIM is removed the signal icon will be updated and proper
value is displayed on inserting other SIM

Change-Id: Ie392716e0ad7783306570258fd4ec411d5dfaab6
CRs-Fixed: 807798
parent e515d746
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -814,6 +814,7 @@ public class NetworkControllerImpl extends BroadcastReceiver

        if (DEBUG) Log.d(TAG, "updateSimState: mSimState=" + mSimState);
        updateSimIcon();
        updateTelephonySignalStrength();
    }

    private boolean isCdma() {
@@ -859,8 +860,9 @@ public class NetworkControllerImpl extends BroadcastReceiver
            Log.d(TAG, "updateTelephonySignalStrength: hasService=" + hasService()
                    + " ss=" + mSignalStrength);
        }
        if (!hasService() &&
              (mDataServiceState != ServiceState.STATE_IN_SERVICE)) {
        if ((!hasService() &&
              (mDataServiceState != ServiceState.STATE_IN_SERVICE)) ||
              mSimState == IccCardConstants.State.ABSENT) {
            if (CHATTY) Log.d(TAG, "updateTelephonySignalStrength: No Service");
            mPhoneSignalIconId = TelephonyIcons.getSignalNullIcon();
            mQSPhoneSignalIconId = R.drawable.ic_qs_signal_no_signal;