Project

General

Profile

« Previous | Next » 

Revision 7ac0ee88

Added by Leszek Koltunski over 2 years ago

Simplify ObjectList: now there's just one object per size.

View differences:

src/main/java/org/distorted/dialogs/RubikDialogSetName.java
149 149
          RubikScores.getInstance().setName(name);
150 150
          RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass();
151 151

  
152
          int object = play.getObject();
153
          int size   = play.getSize();
154
          int sizeIndex = ObjectList.getSizeIndex(object,size);
155

  
156 152
          Bundle bundle = new Bundle();
157
          bundle.putInt("tab", ObjectList.pack(object,sizeIndex) );
153
          bundle.putInt("tab", play.getObject() );
158 154
          bundle.putBoolean("submitting", true);
159 155

  
160 156
          RubikDialogScores scores = new RubikDialogScores();

Also available in: Unified diff