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

Commit 45ebfaf3 authored by Ethan Chen's avatar Ethan Chen Committed by Steve Kondik
Browse files

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

Change-Id: I5c4b43bba1469e14474d20a3627eafa597459e6e
parent 76361bce
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1040,6 +1040,12 @@ public class MSimNetworkController extends NetworkController {
                mMSimDataTypeIconId[subscription] = R.drawable.stat_sys_data_fully_connected_roam;
            }
        }

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

        if (DEBUG) {
            Slog.d(TAG, "refreshViews connected={"
                    + (mWifiConnected?" wifi":"")
+6 −0
Original line number Diff line number Diff line
@@ -1263,6 +1263,12 @@ public class NetworkController extends BroadcastReceiver implements DemoMode {
            }
        }

        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":"")