Use a simpler constructor

The constructor with two arguments is changing

Bug: 195306545
Test: make RunSettingsRoboTests
Change-Id: I56288bb5b3eb9d71ae49128ccbc72fd57abb48d1
This commit is contained in:
Dmitri Plotnikov
2021-10-07 19:56:10 -07:00
parent 9632cd7087
commit 4b8a7bcaa5
4 changed files with 4 additions and 9 deletions

View File

@@ -375,9 +375,7 @@ public class BatteryUtils {
} catch (RuntimeException e) {
Log.e(TAG, "getBatteryInfo() error from getBatteryUsageStats()", e);
// Use default BatteryUsageStats.
batteryUsageStats =
new BatteryUsageStats.Builder(new String[0], /* includePowerModels */ false)
.build();
batteryUsageStats = new BatteryUsageStats.Builder(new String[0]).build();
}
final long startTime = System.currentTimeMillis();