Merge "In BatteryChartViewV2, use levels.length-1 to replace mTrapezoidCount. So the chartview could show any number of slots as the given levels length-1."

This commit is contained in:
TreeHugger Robot
2022-07-19 10:57:05 +00:00
committed by Android (Google) Code Review
2 changed files with 19 additions and 25 deletions

View File

@@ -183,7 +183,6 @@ public final class BatteryChartViewV2Test {
for (int index = 0; index < levels.length; index++) {
levels[index] = index + 1;
}
mBatteryChartView.setTrapezoidCount(12);
mBatteryChartView.setLevels(levels);
mBatteryChartView.setClickableForce(true);
when(mPowerUsageFeatureProvider.isChartGraphSlotsEnabled(mContext))