Update strings for charging optimization mode.
Update the battery settings summary and the charging string on the Battery settings page if charging optimization mode is applied. Bug: 329020954 Test: atest SettingsRoboTests Change-Id: Ie906a010d70bcef7fafe235f0287b289ea934705
This commit is contained in:
@@ -67,4 +67,26 @@ public class BatterySettingsFeatureProviderImpl implements BatterySettingsFeatur
|
||||
@NonNull Context context, long remainingTimeMs, long currentTimeMs) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isChargingOptimizationMode(@NonNull Context context) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public CharSequence getChargingOptimizationRemainingLabel(
|
||||
@NonNull Context context, long chargeRemainingTimeMs, long currentTimeMs) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public CharSequence getChargingOptimizationChargeLabel(
|
||||
@NonNull Context context,
|
||||
@NonNull String batteryPercentageString,
|
||||
long chargeRemainingTimeMs,
|
||||
long currentTimeMs) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user