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

Commit 51c66dfb authored by Ethan Chen's avatar Ethan Chen
Browse files

NetworkController: Hide signal strength icon when no SIM icon is shown

Change-Id: I5c4b43bba1469e14474d20a3627eafa597459e6e
parent b81aef2b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1207,6 +1207,12 @@ public class MSimNetworkControllerImpl extends NetworkControllerImpl {
                }
            }
        }

        if (!mAirplaneMode && mMSimState[phoneId] == IccCardConstants.State.ABSENT) {
            mMSimPhoneSignalIconId[phoneId] = mMSimDataSignalIconId[phoneId]
                = mMSimDataTypeIconId[phoneId] = 0;
        }

        if (DEBUG) {
            Slog.d(TAG, "refreshViews connected={"
                    + (mWifiConnected?" wifi":"")
+6 −0
Original line number Diff line number Diff line
@@ -1432,6 +1432,12 @@ public class NetworkControllerImpl extends BroadcastReceiver
            mQSDataTypeIconId = mDemoQSDataTypeIconId;
        }

        if (!mAirplaneMode && mSimState == IccCardConstants.State.ABSENT) {
            // look again; your radios are now sim cards
            mPhoneSignalIconId = mDataSignalIconId = mDataTypeIconId = mQSDataTypeIconId = 0;
            mQSPhoneSignalIconId = 0;
        }

        if (DEBUG) {
            Log.d(TAG, "refreshViews connected={"
                    + (mWifiConnected?" wifi":"")