Use a simpler constructor
The constructor with two arguments is changing Bug: 195306545 Test: make RunSettingsRoboTests Change-Id: I56288bb5b3eb9d71ae49128ccbc72fd57abb48d1
This commit is contained in:
@@ -163,8 +163,7 @@ public class BatteryInfo {
|
||||
} catch (RuntimeException e) {
|
||||
Log.e(TAG, "getBatteryInfo() from getBatteryUsageStats()", e);
|
||||
// Use default BatteryUsageStats.
|
||||
stats = new BatteryUsageStats.Builder(
|
||||
new String[0], /* includePowerModels */ false).build();
|
||||
stats = new BatteryUsageStats.Builder(new String[0]).build();
|
||||
}
|
||||
}
|
||||
final BatteryInfo batteryInfo =
|
||||
|
Reference in New Issue
Block a user