diff --git a/pianochartview/src/main/java/com/kekstudio/pianochartview/PianoChartView.java b/pianochartview/src/main/java/com/kekstudio/pianochartview/PianoChartView.java index 1120574..09b07c2 100644 --- a/pianochartview/src/main/java/com/kekstudio/pianochartview/PianoChartView.java +++ b/pianochartview/src/main/java/com/kekstudio/pianochartview/PianoChartView.java @@ -221,10 +221,10 @@ protected void onDraw(Canvas canvas) { for(int i = 0; i < allKeysCount; i++){ if(blackKeys.contains(i)) continue; - if(checkedKeys.contains(i)){ - pianoFillPaint.setColor(checkedColor); - }else if (additionalCheckedKeys.contains(i)) { + if (additionalCheckedKeys.contains(i)) { pianoFillPaint.setColor(additionalCheckedColor); + }else if(checkedKeys.contains(i)){ + pianoFillPaint.setColor(checkedColor); }else{ pianoFillPaint.setColor(lightColor); } @@ -251,10 +251,10 @@ protected void onDraw(Canvas canvas) { k++; continue; } - if(checkedKeys.contains(i)){ - pianoFillPaint.setColor(checkedColor); - }else if (additionalCheckedKeys.contains(i)) { + if(additionalCheckedKeys.contains(i)){ pianoFillPaint.setColor(additionalCheckedColor); + }else if (checkedKeys.contains(i)) { + pianoFillPaint.setColor(checkedColor); }else{ pianoFillPaint.setColor(darkColor); }