Project

General

Profile

« Previous | Next » 

Revision 21a1bb5d

Added by Leszek Koltunski about 1 year ago

Move the SharedPreferences to the OSInterface

View differences:

src/main/java/org/distorted/main/RubikActivity.java
350 350
      RubikObjectList.saveMeshState(editor);
351 351
      ScreenList.savePreferences(editor);
352 352
      RubikSurfaceView view = findViewById(R.id.rubikSurfaceView);
353
      view.getObjectControl().savePreferences(editor);
353
      OSInterface os = view.getInterface();
354
      os.setEditor(editor);
355
      view.getObjectControl().savePreferences();
354 356

  
355 357
      ScreenList curr = ScreenList.getCurrentScreen();
356 358

  
......
427 429
      if( !mOldVersion.equals("") )
428 430
        {
429 431
        RubikSurfaceView view = findViewById(R.id.rubikSurfaceView);
430
        view.getObjectControl().restorePreferences(preferences);
432
        OSInterface os = view.getInterface();
433
        os.setPreferences(preferences);
434
        view.getObjectControl().restorePreferences();
431 435
        }
432 436
      }
433 437

  

Also available in: Unified diff