Revision be576d14
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/dialogs/RubikDialogNewRecord.java | ||
---|---|---|
40 | 40 |
import org.distorted.main.RubikActivity; |
41 | 41 |
import org.distorted.objects.ObjectList; |
42 | 42 |
import org.distorted.scores.RubikScores; |
43 |
import org.distorted.states.RubikState;
|
|
43 |
import org.distorted.states.StateList;
|
|
44 | 44 |
import org.distorted.states.RubikStatePlay; |
45 | 45 |
|
46 | 46 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
98 | 98 |
RubikScores scores = RubikScores.getInstance(); |
99 | 99 |
String name = scores.getName(); |
100 | 100 |
Bundle bundle = new Bundle(); |
101 |
RubikState.switchState(act,RubikState.PLAY);
|
|
101 |
StateList.switchState(act, StateList.PLAY);
|
|
102 | 102 |
|
103 | 103 |
if( name.length()>0 ) |
104 | 104 |
{ |
105 |
RubikStatePlay play = (RubikStatePlay) RubikState.PLAY.getStateClass();
|
|
105 |
RubikStatePlay play = (RubikStatePlay) StateList.PLAY.getStateClass();
|
|
106 | 106 |
int object = play.getObject(); |
107 | 107 |
int size = play.getSize(); |
108 | 108 |
int sizeIndex = ObjectList.getSizeIndex(object,size); |
... | ... | |
131 | 131 |
public void onClick(DialogInterface dialog, int which) |
132 | 132 |
{ |
133 | 133 |
RubikActivity act = (RubikActivity)getActivity(); |
134 |
RubikState.switchState(act,RubikState.PLAY);
|
|
134 |
StateList.switchState(act, StateList.PLAY);
|
|
135 | 135 |
} |
136 | 136 |
}); |
137 | 137 |
|
Also available in: Unified diff
Rename some classes.