Skip to content

Commit

Permalink
Update HorizontalBarChartRenderer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
oatrice authored Feb 7, 2020
1 parent 4b67673 commit 33240f9
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ protected void drawDataSet(Canvas c, IBarDataSet dataSet, int index) {

trans.pointValuesToPixel(buffer.buffer);

boolean isCustomFill = false;
if(dataSet.getFills() != null) {
isCustomFill = !dataSet.getFills().isEmpty();
}
final boolean isCustomFill = dataSet.getFills() != null && !dataSet.getFills().isEmpty();
final boolean isSingleColor = dataSet.getColors().size() == 1;
final boolean isInverted = mChart.isInverted(dataSet.getAxisDependency());

Expand Down

0 comments on commit 33240f9

Please sign in to comment.