Revision 2f1b15da
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/magic/RubikActivity.java | ||
---|---|---|
66 | 66 |
RubikSurfaceView view = findViewById(R.id.rubikSurfaceView); |
67 | 67 |
view.onResume(); |
68 | 68 |
restorePreferences(); |
69 |
view.enterState(this, mCurrentState);
|
|
69 |
view.switchState(this, mCurrentState);
|
|
70 | 70 |
} |
71 | 71 |
|
72 | 72 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
105 | 105 |
if( mCurrentState!=null ) |
106 | 106 |
{ |
107 | 107 |
RubikSurfaceView view = findViewById(R.id.rubikSurfaceView); |
108 |
view.enterState(this, mCurrentState);
|
|
108 |
view.switchState(this, mCurrentState);
|
|
109 | 109 |
} |
110 | 110 |
else |
111 | 111 |
{ |
... | ... | |
161 | 161 |
{ |
162 | 162 |
mCurrentState = RubikState.PLAY; |
163 | 163 |
RubikSurfaceView view = findViewById(R.id.rubikSurfaceView); |
164 |
view.enterState(this,mCurrentState);
|
|
164 |
view.switchState(this,mCurrentState);
|
|
165 | 165 |
} |
166 | 166 |
|
167 | 167 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Corrections