«
Previous
|
Next
»
Revision fb65a94d
Added by Leszek Koltunski 1 day ago
- ID fb65a94d31946681828a0df893e30ae768eab31f
- Parent d78e2f1d
src/main/java/org/distorted/phasedsolver/SolverActivity.java | ||
---|---|---|
256 | 256 |
public void Solve(View v) |
257 | 257 |
{ |
258 | 258 |
TwistyObject object = getControl().getObject(); |
259 |
int numCubits = 26;
|
|
259 |
int numCubits= object.getNumCubits();
|
|
260 | 260 |
int[] qi = new int[numCubits]; |
261 | 261 |
for(int i=0; i<numCubits; i++) qi[i] = object.getCubitQuatIndex(i); |
262 | 262 |
final SolutionListener listener = this; |
... | ... | |
264 | 264 |
|
265 | 265 |
runOnUiThread(new Runnable() |
266 | 266 |
{ |
267 |
@Override |
|
268 |
public void run() |
|
269 |
{ |
|
270 |
mSolver.solution(listener, qi); |
|
271 |
} |
|
267 |
@Override public void run() { mSolver.solution(listener, qi); } |
|
272 | 268 |
}); |
273 | 269 |
} |
274 | 270 |
|
Also available in: Unified diff
bugfix in SolverActivity and speedup in MoveProviderAlgs