diff options
Diffstat (limited to 'tests/src/com/android/launcher3/celllayout/ReorderAlgorithmUnitTest.java')
-rw-r--r-- | tests/src/com/android/launcher3/celllayout/ReorderAlgorithmUnitTest.java | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/tests/src/com/android/launcher3/celllayout/ReorderAlgorithmUnitTest.java b/tests/src/com/android/launcher3/celllayout/ReorderAlgorithmUnitTest.java index e1af7746fc..28471f6a3f 100644 --- a/tests/src/com/android/launcher3/celllayout/ReorderAlgorithmUnitTest.java +++ b/tests/src/com/android/launcher3/celllayout/ReorderAlgorithmUnitTest.java @@ -191,21 +191,9 @@ public class ReorderAlgorithmUnitTest { int[] testCaseXYinPixels = new int[2]; cl.regionToCenterPoint(x, y, spanX, spanY, testCaseXYinPixels); - ItemConfiguration configuration = new ItemConfiguration(); - cl.copyCurrentStateToSolution(configuration); - ItemConfiguration solution = cl.createReorderAlgorithm() - .calculateReorder( - new ReorderParameters( - testCaseXYinPixels[0], - testCaseXYinPixels[1], - spanX, - spanY, - minSpanX, - minSpanY, - null, - configuration - ) - ); + ItemConfiguration solution = cl.createReorderAlgorithm().calculateReorder( + testCaseXYinPixels[0], testCaseXYinPixels[1], minSpanX, minSpanY, spanX, spanY, + null); if (solution == null) { solution = new ItemConfiguration(); solution.isSolution = false; |