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

Commit e912c9cc authored by Dan Sandler's avatar Dan Sandler
Browse files

Repair wifi/cellular kerning.

The wifi spacer should only be shown if the first mobile
network has a data type indicator.

Bug: 18665813
Change-Id: Ifcd3a61ebc8cdb76d134baa23b22f1291edadd28
parent 8b33cf4d
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -277,11 +277,15 @@ public class SignalClusterView
                    mWifiStrengthId));

        boolean anyMobileVisible = false;
        int firstMobileTypeId = 0;
        for (PhoneState state : mPhoneStates) {
            if (state.apply(anyMobileVisible)) {
                if (!anyMobileVisible) {
                    firstMobileTypeId = state.mMobileTypeId;
                    anyMobileVisible = true;
                }
            }
        }

        if (mIsAirplaneMode) {
            mAirplane.setImageResource(mAirplaneIconId);
@@ -298,7 +302,7 @@ public class SignalClusterView
            mWifiAirplaneSpacer.setVisibility(View.GONE);
        }

        if ((anyMobileVisible || mNoSimsVisible) && mWifiVisible) {
        if (((anyMobileVisible && firstMobileTypeId != 0) || mNoSimsVisible) && mWifiVisible) {
            mWifiSignalSpacer.setVisibility(View.VISIBLE);
        } else {
            mWifiSignalSpacer.setVisibility(View.GONE);