Merge "[Provider Model] Add cutout for signal icon if the mobile data is disabled" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
da8ab6a51d
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -311,7 +311,8 @@ public class SubscriptionsPreferenceController extends AbstractPreferenceControl
|
||||
numLevels += 1;
|
||||
}
|
||||
|
||||
Drawable icon = mSubsPrefCtrlInjector.getIcon(mContext, level, numLevels, false);
|
||||
Drawable icon = mSubsPrefCtrlInjector.getIcon(mContext, level, numLevels,
|
||||
!mTelephonyManager.isDataEnabled());
|
||||
final boolean isActiveCellularNetwork =
|
||||
mSubsPrefCtrlInjector.isActiveCellularNetwork(mContext);
|
||||
if (isActiveCellularNetwork || (mWifiPickerTrackerHelper != null)
|
||||
|
Reference in New Issue
Block a user