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

Commit 1f1304a8 authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Don't show network type if no SIM.

Bug: 5127932
Change-Id: Ib29bfe3372b2c40618480691d65cc4c74d02f8fd
parent fb87cf60
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -522,6 +522,7 @@ public class NetworkController extends BroadcastReceiver {
                }
            } else {
                iconId = R.drawable.stat_sys_no_sim;
                visible = false; // no SIM? no data
            }
        } else {
            // CDMA case, mDataActivity can be also DATA_ACTIVITY_DORMANT
@@ -801,7 +802,12 @@ public class NetworkController extends BroadcastReceiver {
        }

        if (DEBUG) {
            Slog.d(TAG, "refreshViews combinedSignalIconId=0x"
            Slog.d(TAG, "refreshViews connected={"
                    + (mWifiConnected?" wifi":"")
                    + (mDataConnected?" data":"")
                    + " } level="
                    + ((mSignalStrength == null)?"??":Integer.toString(mSignalStrength.getLevel()))
                    + " combinedSignalIconId=0x"
                    + Integer.toHexString(combinedSignalIconId)
                    + "/" + getResourceName(combinedSignalIconId)
                    + " dataDirectionOverlayIconId=0x" + Integer.toHexString(dataDirectionOverlayIconId)