Skip to content

Commit

Permalink
Order of additional and standart checked keys changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy671 committed Dec 19, 2017
1 parent 4a88286 commit d08bfdd
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit d08bfdd

Please sign in to comment.