Use a simpler constructor
The constructor with two arguments is changing Bug: 195306545 Test: make RunSettingsRoboTests Change-Id: I56288bb5b3eb9d71ae49128ccbc72fd57abb48d1
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user