[Provider Model] Add cutout for signal icon if the mobile data is disabled

Bug: 198233143
Test: manual, atest ProviderModelSliceHelperTest and SubscriptionsPreferenceControllerTest
Change-Id: I8714c9ff4c0c3aa5bad51ad5d41207d50ccca8ef
Merged-In: I3caefc7e1ca10dadcad114273edf35d9309502e1
This commit is contained in:
Zoey Chen
2021-08-31 20:28:41 +08:00
parent 31208c4948
commit 3f46c5f685
4 changed files with 12 additions and 5 deletions

View File

@@ -140,7 +140,7 @@ public class ProviderModelSliceHelper {
numLevels += 1;
}
return MobileNetworkUtils.getSignalStrengthIcon(mContext, level, numLevels,
NO_CELL_DATA_TYPE_ICON, false);
NO_CELL_DATA_TYPE_ICON, !mTelephonyManager.isDataEnabled());
}
/**