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
This commit is contained in:
@@ -277,9 +277,13 @@ public class SignalClusterView
|
||||
mWifiStrengthId));
|
||||
|
||||
boolean anyMobileVisible = false;
|
||||
int firstMobileTypeId = 0;
|
||||
for (PhoneState state : mPhoneStates) {
|
||||
if (state.apply(anyMobileVisible)) {
|
||||
anyMobileVisible = true;
|
||||
if (!anyMobileVisible) {
|
||||
firstMobileTypeId = state.mMobileTypeId;
|
||||
anyMobileVisible = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user