Merge "Remove unnecessary converting us to ms" into sc-dev am: 899845b1ee am: b239ded129

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

Change-Id: I6b602e1325c587cba9e775793c16ee18c53b546d
This commit is contained in:
YUKAI HUNG
2021-05-12 05:05:52 +00:00
committed by Automerger Merge Worker

View File

@@ -400,7 +400,7 @@ public class BatteryUtils {
// couldn't get estimate from cache or provider, use fallback // couldn't get estimate from cache or provider, use fallback
if (estimate == null) { if (estimate == null) {
estimate = new Estimate( estimate = new Estimate(
PowerUtil.convertUsToMs(batteryUsageStats.getBatteryTimeRemainingMs()), batteryUsageStats.getBatteryTimeRemainingMs(),
false /* isBasedOnUsage */, false /* isBasedOnUsage */,
EstimateKt.AVERAGE_TIME_TO_DISCHARGE_UNKNOWN); EstimateKt.AVERAGE_TIME_TO_DISCHARGE_UNKNOWN);
} }