Project

General

Profile

« Previous | Next » 

Revision f5da732a

Added by Leszek Koltunski almost 3 years ago

Cube Control: step 2.

View differences:

src/main/java/org/distorted/dialogs/RubikDialogNewRecord.java
75 75
        RubikScores scores = RubikScores.getInstance();
76 76
        String name = scores.getName();
77 77
        Bundle bundle = new Bundle();
78
        ScreenList.switchState(act, ScreenList.PLAY);
78
        ScreenList.switchScreen(act, ScreenList.PLAY);
79 79

  
80 80
        if( name.length()>0 )
81 81
          {
82
          RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getStateClass();
82
          RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass();
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
        ScreenList.switchState(act, ScreenList.PLAY);
111
        ScreenList.switchScreen(act, ScreenList.PLAY);
112 112
        }
113 113
      });
114 114

  

Also available in: Unified diff