Project

General

Profile

« Previous | Next » 

Revision 71cda061

Added by Leszek Koltunski over 1 year ago

IAP part 5: new 'Purchase' activity (cont'd)

View differences:

src/main/java/org/distorted/config/ConfigScreenPane.java
105 105
      view = layout.findViewById(R.id.configDetailsAuthor2);
106 106
      view.setText(both);
107 107

  
108
      if( difficulty<0       ) difficulty=0;
109
      if( difficulty>NUM_IDS ) difficulty=NUM_IDS;
108
      if( difficulty<0        ) difficulty=0;
109
      if( difficulty>=NUM_IDS ) difficulty=NUM_IDS-1;
110 110

  
111 111
      for(int i=0; i<NUM_IDS; i++)
112 112
        {

Also available in: Unified diff