Revision 33f6abfd
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/dialogs/RubikDialogPatternView.java | ||
---|---|---|
26 | 26 |
import android.widget.ExpandableListView; |
27 | 27 |
import android.widget.FrameLayout; |
28 | 28 |
|
29 |
import org.distorted.objectlib.main.ObjectControl; |
|
29 | 30 |
import org.distorted.objectlib.main.ObjectType; |
30 | 31 |
|
31 | 32 |
import org.distorted.main.R; |
... | ... | |
66 | 67 |
super(act); |
67 | 68 |
|
68 | 69 |
final RubikActivity ract = (RubikActivity)getContext(); |
70 |
final ObjectControl control = ract.getControl(); |
|
69 | 71 |
|
70 | 72 |
mTab = position; |
71 | 73 |
mDialog = dialog; |
... | ... | |
94 | 96 |
{ |
95 | 97 |
RubikPattern pattern = RubikPattern.getInstance(); |
96 | 98 |
int[][] moves = pattern.reInitialize(mTab, groupPosition, childPosition); |
97 |
ObjectType list = RubikPatternList.getObject(mTab);
|
|
99 |
ObjectType object = RubikPatternList.getObject(mTab);
|
|
98 | 100 |
|
99 |
ract.setupObject(list, moves); |
|
101 |
control.changeObject(object); |
|
102 |
control.initializeObject(moves); |
|
100 | 103 |
|
101 | 104 |
ScreenList.switchScreen(ract, ScreenList.PATT); |
102 | 105 |
RubikScreenPattern state = (RubikScreenPattern) ScreenList.PATT.getScreenClass(); |
Also available in: Unified diff
Remove the 'setupObject()' redundant API.