Revision 740fade2
Added by Leszek Koltunski 22 days ago
src/main/java/org/distorted/solverui/SolverActivity.java | ||
---|---|---|
61 | 61 |
|
62 | 62 |
Bundle b = getIntent().getExtras(); |
63 | 63 |
mObjectOrdinal = b!=null ? b.getInt("obj") : 0; |
64 |
mSolverOrdinal = ImplementedSolversList.getSolverOrdinal(mObjectOrdinal); |
|
64 |
RubikObject object = RubikObjectList.getObject(mObjectOrdinal); |
|
65 |
int objectIndex = object==null ? -1 : object.getIndex(); |
|
66 |
mSolverOrdinal = ImplementedSolversList.getSolverOrdinal(objectIndex); |
|
65 | 67 |
mDisplayMessageDialog = true; |
66 | 68 |
|
67 | 69 |
computeScreenDimensions(); |
Also available in: Unified diff
Fix the association between a RubikObject and its solvers and patterns.
Before, if we rearranged the objects order in the main screen, this would break down.