Remove qsDataType since it was the same as dataType

This resolves a TODO and removes unused fields

Test: atest SystemUITests
Bug: 197851948
Change-Id: I5e2eb4896966516f34980863e18b99368f395b20
Merged-In: I5e2eb4896966516f34980863e18b99368f395b20
This commit is contained in:
Evan Laird
2021-08-27 16:00:58 -04:00
parent 379fc8cd51
commit 0b90863da9
3 changed files with 4 additions and 6 deletions

View File

@@ -139,7 +139,6 @@ public class SignalIcon {
public static class MobileIconGroup extends IconGroup {
public final int dataContentDescription; // mContentDescriptionDataType
public final int dataType;
public final int qsDataType;
public MobileIconGroup(String name, int[][] sbIcons, int[][] qsIcons, int[] contentDesc,
int sbNullState, int qsNullState, int sbDiscState, int qsDiscState,
@@ -148,7 +147,6 @@ public class SignalIcon {
qsDiscState, discContentDesc);
this.dataContentDescription = dataContentDesc;
this.dataType = dataType;
this.qsDataType = dataType; // TODO: remove this field
}
}

View File

@@ -399,7 +399,7 @@ public class MobileSignalController extends SignalController<MobileState, Mobile
// Only send data sim callbacks to QS.
if (mCurrentState.dataSim && mCurrentState.isDefault) {
qsTypeIcon =
(showDataIcon || mConfig.alwaysShowDataRatIcon) ? icons.qsDataType : 0;
(showDataIcon || mConfig.alwaysShowDataRatIcon) ? icons.dataType : 0;
qsIcon = new IconState(mCurrentState.enabled
&& !mCurrentState.isEmergency, getQsCurrentIconId(), contentDescription);
description = mCurrentState.isEmergency ? null : mCurrentState.networkName;
@@ -435,7 +435,7 @@ public class MobileSignalController extends SignalController<MobileState, Mobile
if (mProviderModelSetting) {
if (mCurrentState.dataSim && mCurrentState.isDefault) {
qsTypeIcon =
(showDataIcon || mConfig.alwaysShowDataRatIcon) ? icons.qsDataType : 0;
(showDataIcon || mConfig.alwaysShowDataRatIcon) ? icons.dataType : 0;
qsIcon = new IconState(
mCurrentState.enabled && !mCurrentState.isEmergency,
getQsCurrentIconId(), contentDescription);
@@ -444,7 +444,7 @@ public class MobileSignalController extends SignalController<MobileState, Mobile
} else {
if (mCurrentState.dataSim) {
qsTypeIcon =
(showDataIcon || mConfig.alwaysShowDataRatIcon) ? icons.qsDataType : 0;
(showDataIcon || mConfig.alwaysShowDataRatIcon) ? icons.dataType : 0;
qsIcon = new IconState(
mCurrentState.enabled && !mCurrentState.isEmergency,
getQsCurrentIconId(), contentDescription);

View File

@@ -163,7 +163,7 @@ public class WifiSignalController extends
int qsTypeIcon = 0;
IconState qsIcon = null;
if (sbVisible) {
qsTypeIcon = icons.qsDataType;
qsTypeIcon = icons.dataType;
qsIcon = new IconState(mCurrentState.connected, getQsCurrentIconIdForCarrierWifi(),
contentDescription);
}