Project

General

Profile

« Previous | Next » 

Revision d175b83d

Added by Leszek Koltunski over 2 years ago

Progress with FreePlay.

View differences:

src/main/java/org/distorted/main/RubikActivity.java
56 56
import org.distorted.external.RubikNetwork;
57 57
import org.distorted.objects.RubikObject;
58 58
import org.distorted.objects.RubikObjectList;
59
import org.distorted.screens.RubikScreenFreePlay;
59 60
import org.distorted.screens.RubikScreenSolving;
60 61
import org.distorted.screens.ScreenList;
61 62
import org.distorted.screens.RubikScreenPlay;
......
102 103

  
103 104
    private static final String KEY_PLAY = "movesController_play";
104 105
    private static final String KEY_SOLV = "movesController_solv";
106
    public  static final String KEY_FREE = "movesController_free";
105 107

  
106 108
    private boolean mJustStarted;
107 109
    private FirebaseAnalytics mFirebaseAnalytics;
......
332 334
        RubikScreenSolving solv = (RubikScreenSolving)ScreenList.SOLV.getScreenClass();
333 335
        solv.saveMovePreferences(KEY_SOLV,editor);
334 336
        }
337
      if( curr==ScreenList.FREE )
338
        {
339
        RubikScreenFreePlay free = (RubikScreenFreePlay)ScreenList.FREE.getScreenClass();
340
        free.saveMovePreferences(KEY_FREE,editor);
341
        }
335 342

  
336 343
      editor.apply();
337 344
      }
......
400 407
        RubikScreenSolving solv = (RubikScreenSolving)ScreenList.SOLV.getScreenClass();
401 408
        solv.restoreMovePreferences(this,KEY_SOLV,preferences);
402 409
        }
410
      if( curr==ScreenList.FREE )
411
        {
412
        RubikScreenFreePlay free = (RubikScreenFreePlay)ScreenList.FREE.getScreenClass();
413
        free.restoreMovePreferences(this,KEY_FREE,preferences);
414
        }
403 415
      }
404 416

  
405 417
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff