Project

General

Profile

« Previous | Next » 

Revision fcd5b990

Added by Leszek Koltunski almost 3 years ago

Rename 'state' to 'screen'

View differences:

src/main/java/org/distorted/dialogs/RubikDialogNewRecord.java
39 39
import org.distorted.main.RubikActivity;
40 40
import org.distorted.objects.ObjectList;
41 41
import org.distorted.network.RubikScores;
42
import org.distorted.states.StateList;
43
import org.distorted.states.RubikStatePlay;
42
import org.distorted.screens.ScreenList;
43
import org.distorted.screens.RubikScreenPlay;
44 44

  
45 45
///////////////////////////////////////////////////////////////////////////////////////////////////
46 46

  
......
75 75
        RubikScores scores = RubikScores.getInstance();
76 76
        String name = scores.getName();
77 77
        Bundle bundle = new Bundle();
78
        StateList.switchState(act, StateList.PLAY);
78
        ScreenList.switchState(act, ScreenList.PLAY);
79 79

  
80 80
        if( name.length()>0 )
81 81
          {
82
          RubikStatePlay play = (RubikStatePlay) StateList.PLAY.getStateClass();
82
          RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getStateClass();
83 83
          int object = play.getObject();
84 84
          int size   = play.getSize();
85 85
          int sizeIndex = ObjectList.getSizeIndex(object,size);
......
108 108
      public void onClick(DialogInterface dialog, int which)
109 109
        {
110 110
        RubikActivity act = (RubikActivity)getActivity();
111
        StateList.switchState(act, StateList.PLAY);
111
        ScreenList.switchState(act, ScreenList.PLAY);
112 112
        }
113 113
      });
114 114

  

Also available in: Unified diff