Revision ae77f661
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/screens/RubikScreenPlay.java | ||
---|---|---|
497 | 497 |
} |
498 | 498 |
} |
499 | 499 |
|
500 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
501 |
|
|
502 |
public void adjustSolvedIcons() |
|
503 |
{ |
|
504 |
int dbLevel = getDBLevel(mObject); |
|
505 |
int numLevel = Math.min(dbLevel, LEVELS_SHOWN); |
|
506 |
RubikScores scores = RubikScores.getInstance(); |
|
507 |
|
|
508 |
for(int i=0; i<numLevel; i++) |
|
509 |
{ |
|
510 |
int level = i<numLevel-1 ? i+1 : dbLevel; |
|
511 |
Button button = (Button)mPlayLayout.getChildAt(i); |
|
512 |
int icon = scores.isSolved(mObject.ordinal(), level-1) ? R.drawable.ui_solved : R.drawable.ui_notsolved; |
|
513 |
button.setCompoundDrawablesWithIntrinsicBounds(icon,0,0,0); |
|
514 |
} |
|
515 |
} |
|
516 |
|
|
500 | 517 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
501 | 518 |
|
502 | 519 |
private void adjustLevels(final RubikActivity act) |
Also available in: Unified diff
Correct the 'solved' icons in the Play popup.