Project

General

Profile

« Previous | Next » 

Revision d433b50e

Added by Leszek Koltunski over 2 years ago

In the 'magic' app, ObjectType is now only used in RubikObject and RubikObjectList classes and nowhere else.
This is a major step towards being able to download objects from an online repository.

View differences:

src/main/java/org/distorted/dialogs/RubikDialogNewRecord.java
38 38
import org.distorted.main.R;
39 39
import org.distorted.main.RubikActivity;
40 40
import org.distorted.network.RubikScores;
41
import org.distorted.objectlib.main.ObjectType;
42 41
import org.distorted.screens.ScreenList;
43 42
import org.distorted.screens.RubikScreenPlay;
44 43

  
......
80 79
        if( name.length()>0 )
81 80
          {
82 81
          RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass();
83
          ObjectType object = play.getObject();
82
          int object = play.getObject();
84 83

  
85
          bundle.putInt("tab", object.ordinal() );
84
          bundle.putInt("tab", object );
86 85
          bundle.putBoolean("submitting", true);
87 86

  
88 87
          RubikDialogScores scoresDiag = new RubikDialogScores();

Also available in: Unified diff