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/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.objects.RubikObjectList;
41 42
import org.distorted.screens.ScreenList;
42 43
import org.distorted.screens.RubikScreenPlay;
43 44

  
......
78 79

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

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

Also available in: Unified diff