Project

General

Profile

« Previous | Next » 

Revision da57afae

Added by Leszek Koltunski about 1 year ago

Move opening local files to the OSInterface

View differences:

src/main/java/org/distorted/tutorials/TutorialActivity.java
33 33
import org.distorted.dialogs.RubikDialogError;
34 34
import org.distorted.objects.RubikObject;
35 35
import org.distorted.objects.RubikObjectList;
36
import org.distorted.os.OSInterface;
36 37
import org.distorted.purchase.PurchaseActivity;
37 38

  
38 39
import static org.distorted.objectlib.main.TwistyObject.MESH_NICE;
......
226 227
      InputStream jsonStream = object==null ? null : object.getObjectStream(this);
227 228
      InputStream meshStream = object==null ? null : object.getMeshStream(this);
228 229
      String name = object==null ? "NULL" : object.getUpperName();
229
      InitAssets asset = new InitAssets(jsonStream,meshStream,getResources());
230
      TutorialSurfaceView view = findViewById(R.id.tutorialSurfaceView);
231
      OSInterface os = view.getInterface();
232
      InitAssets asset = new InitAssets(jsonStream,meshStream,os);
230 233
      control.changeIfDifferent(ordinal,name,meshState,iconMode,asset);
231 234
      }
232 235

  

Also available in: Unified diff