Project

General

Profile

« Previous | Next » 

Revision 03423c67

Added by Leszek Koltunski about 2 years ago

Finally fix the bad bug where people could submit impossible records!

View differences:

src/main/java/org/distorted/main/RubikActivity.java
350 350

  
351 351
      RubikObjectList.restorePreferences(this,preferences);
352 352

  
353
      for (int i=0; i< BaseEffect.Type.LENGTH; i++)
353
      for (int i=0; i<BaseEffect.Type.LENGTH; i++)
354 354
        {
355 355
        BaseEffect.Type.getType(i).restorePreferences(preferences);
356 356
        }
357 357

  
358
      for (int i = 0; i< ScreenList.LENGTH; i++)
358
      for (int i=0; i<ScreenList.LENGTH; i++)
359 359
        {
360 360
        ScreenList.getScreen(i).getScreenClass().restorePreferences(preferences);
361 361
        }
......
667 667
    public void reloadObject(String shortName)
668 668
      {
669 669
      TwistyObject currObject = getObject();
670
      String name = currObject.getShortName();
670
      String name = currObject==null ? "" : currObject.getShortName();
671 671

  
672 672
      if( name.toLowerCase(Locale.ENGLISH).equals(shortName) )
673 673
        {

Also available in: Unified diff