Merge "Remove unnecessary converting us to ms" into sc-dev am: 31428e9dc5

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15093550

Change-Id: Ia1cc369b22cdc90d55a00e405d923e45b94d95d3
This commit is contained in:
Wesley Wang
2021-06-24 13:56:49 +00:00
committed by Automerger Merge Worker

View File

@@ -204,7 +204,7 @@ public class BatteryInfo {
}
final long prediction = discharging ? batteryUsageStats.getBatteryTimeRemainingMs() : 0;
final Estimate estimate = new Estimate(
PowerUtil.convertUsToMs(prediction),
prediction,
false, /* isBasedOnUsage */
EstimateKt.AVERAGE_TIME_TO_DISCHARGE_UNKNOWN);
BatteryUtils.logRuntime(LOG_TAG, "time for regular BatteryInfo", startTime);