Project

General

Profile

« Previous | Next » 

Revision 88451205

Added by Leszek Koltunski over 1 year ago

Change OperatingSystemInterface

View differences:

src/main/java/org/distorted/bandaged/BandagedCreatorActivity.java
287 287
          {
288 288
          SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
289 289
          SharedPreferences.Editor editor = preferences.edit();
290
          OSInterface os = new OSInterface(this);
290
          OSInterface os = new OSInterface(this,null);
291 291
          object.removePreferences(os);
292 292
          editor.apply();
293 293
          }
src/main/java/org/distorted/bandaged/BandagedPlayView.java
83 83
        {
84 84
        BandagedPlayActivity act = (BandagedPlayActivity)context;
85 85
        BandagedPlayLibInterface ref = new BandagedPlayLibInterface(act);
86
        mInterface = new OSInterface(act);
87
        mObjectController = new ObjectControl(ref,mInterface);
86
        mInterface = new OSInterface(act,ref);
87
        mObjectController = new ObjectControl(mInterface);
88 88
        mObjectController.setRotateOnCreation(true);
89 89
        mRenderer = new BandagedPlayRenderer(this);
90 90

  
src/main/java/org/distorted/config/ConfigSurfaceView.java
78 78
        {
79 79
        ConfigActivity act = (ConfigActivity)context;
80 80
        ConfigObjectLibInterface ref = new ConfigObjectLibInterface();
81
        mInterface = new OSInterface(act);
82
        mObjectController = new ObjectControl(ref,mInterface);
81
        mInterface = new OSInterface(act,ref);
82
        mObjectController = new ObjectControl(mInterface);
83 83
        mObjectController.setRotateOnCreation(true);
84 84
        mRenderer = new ConfigRenderer(this);
85 85

  
src/main/java/org/distorted/main/RubikSurfaceView.java
120 120
        {
121 121
        RubikActivity act = (RubikActivity)context;
122 122
        RubikObjectLibInterface ref = new RubikObjectLibInterface(act);
123
        mInterface = new OSInterface(act);
124
        mObjectController = new ObjectControl(ref,mInterface);
123
        mInterface = new OSInterface(act,ref);
124
        mObjectController = new ObjectControl(mInterface);
125 125
        mRenderer = new RubikRenderer(this);
126 126

  
127 127
        final ActivityManager activityManager= (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
src/main/java/org/distorted/purchase/PurchaseSurfaceView.java
75 75
        {
76 76
        PurchaseActivity act = (PurchaseActivity)context;
77 77
        PurchaseObjectLibInterface ref = new PurchaseObjectLibInterface();
78
        mInterface = new OSInterface(act);
79
        mObjectController = new ObjectControl(ref,mInterface);
78
        mInterface = new OSInterface(act,ref);
79
        mObjectController = new ObjectControl(mInterface);
80 80
        mObjectController.setRotateOnCreation(true);
81 81
        mRenderer = new PurchaseRenderer(this);
82 82

  
src/main/java/org/distorted/tutorials/TutorialSurfaceView.java
95 95
        {
96 96
        TutorialActivity act = (TutorialActivity)context;
97 97
        TutorialObjectLibInterface ref = new TutorialObjectLibInterface(act);
98
        mInterface = new OSInterface(act);
99
        mObjectController = new ObjectControl(ref,mInterface);
98
        mInterface = new OSInterface(act,ref);
99
        mObjectController = new ObjectControl(mInterface);
100 100
        mRenderer = new TutorialRenderer(this);
101 101

  
102 102
        final ActivityManager activityManager= (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);

Also available in: Unified diff