Project

General

Profile

« Previous | Next » 

Revision 4fc7b1e6

Added by Leszek Koltunski over 3 years ago

Fix the fact that in the last, 'Full Scramble' level, it wouldn't switch on the green light.

View differences:

src/main/java/org/distorted/screens/RubikScreenPlay.java
521 521
      levels[i] = act.getString(R.string.lv_placeholder,i+1);
522 522
      }
523 523

  
524
    levels[numLevel-1] = act.getString(R.string.level_full);
524
    if( numLevel>0 )
525
      {
526
      levels[numLevel-1] = act.getString(R.string.level_full);
527
      }
525 528

  
526 529
    if( mLevelValue>maxLevel || mLevelValue<1 ||
527 530
       (mLevelValue<maxLevel || mLevelValue>LEVELS_SHOWN ) )
......
555 558
      button.setText(levels[i]);
556 559
      button.setTextSize(TypedValue.COMPLEX_UNIT_PX, mMenuTextSize);
557 560

  
558
      int icon = scores.isSolved(mObject, sizeIndex, i) ? R.drawable.ui_solved : R.drawable.ui_notsolved;
561
      int icon = scores.isSolved(mObject, sizeIndex, scrambles-1) ? R.drawable.ui_solved : R.drawable.ui_notsolved;
559 562
      button.setCompoundDrawablesWithIntrinsicBounds(icon,0,0,0);
560 563

  
561 564
      button.setOnClickListener( new View.OnClickListener()

Also available in: Unified diff