Project

General

Profile

« Previous | Next » 

Revision 400ff34d

Added by Leszek Koltunski over 2 years ago

Move the 'currObject' from RubikScreenPlay (WTF?) to RubikObjectList.

View differences:

src/main/java/org/distorted/dialogs/RubikDialogSetName.java
41 41
import org.distorted.main.R;
42 42
import org.distorted.main.RubikActivity;
43 43
import org.distorted.network.RubikScores;
44
import org.distorted.objects.RubikObjectList;
44 45
import org.distorted.screens.ScreenList;
45 46
import org.distorted.screens.RubikScreenPlay;
46 47

  
......
145 146
          RubikActivity act = (RubikActivity)getActivity();
146 147
          ScreenList.switchScreen(act, ScreenList.PLAY);
147 148
          RubikScores.getInstance().setName(name);
148
          RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass();
149 149

  
150 150
          Bundle bundle = new Bundle();
151
          bundle.putInt("tab", play.getObject() );
151
          bundle.putInt("tab", RubikObjectList.getCurrObject() );
152 152
          bundle.putBoolean("submitting", true);
153 153

  
154 154
          RubikDialogScores scores = new RubikDialogScores();

Also available in: Unified diff