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

Commit 12d07218 authored by Ethan Chen's avatar Ethan Chen
Browse files

NetworkController: Fix hiding signal strength icon when no SIM icon shown

* This now handles the case where the no SIM icon is overlaid with the
* signal strength icon when WiFi is disabled or not connected.

Change-Id: Ie5bf3d9f5cb4752ff631c8fcf7b1a5628219b31b
parent bba7d609
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -986,7 +986,9 @@ public class MSimNetworkController extends NetworkController {
            } else if (mPhone.isNetworkRoaming(subscription)) {
                mMSimDataTypeIconId[subscription] = R.drawable.stat_sys_data_connected_roam;
            }
        } else if (mMSimState[subscription] == IccCardConstants.State.ABSENT) {
        }

        if (!mAirplaneMode && mMSimState[subscription] == IccCardConstants.State.ABSENT) {
            mMSimPhoneSignalIconId[subscription] = mMSimDataSignalIconId[subscription]
                    = mMSimDataTypeIconId[subscription] = 0;
        }
+3 −1
Original line number Diff line number Diff line
@@ -1271,7 +1271,9 @@ public class NetworkController extends BroadcastReceiver {
                mDataTypeIconId = R.drawable.stat_sys_data_connected_roam;
                mQSDataTypeIconId = R.drawable.ic_qs_signal_r;
            }
        } else if (mSimState == IccCardConstants.State.ABSENT) {
        }

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