Allow wireless charging label to customize content descriptions
Fixes: 343616480 Test: atest SettingsRoboTests Change-Id: I0d87b50fd88167b57ce9d9b06d776ba2ebe304ea
This commit is contained in:
@@ -97,6 +97,9 @@ public class BatteryHeaderPreferenceController extends BasePreferenceController
|
||||
final CharSequence wirelessChargingLabel =
|
||||
mBatterySettingsFeatureProvider.getWirelessChargingLabel(mContext, info);
|
||||
if (wirelessChargingLabel != null) {
|
||||
mBatteryUsageProgressBarPref.setBottomSummaryContentDescription(
|
||||
mBatterySettingsFeatureProvider
|
||||
.getWirelessChargingContentDescription(mContext, info));
|
||||
return wirelessChargingLabel;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user