Moving rearrangementExists to ReorderLogic since it's only used there

Also, simplify copyCurrentStateToSolution since it always gets false
as the second parameter.

Flag: NA
Bug: 229292911
Test: ReorderAlgorithmUnitTest
Change-Id: I025566897246fa59ca513cb7de9a12465054498f
This commit is contained in:
Sebastian Franco
2023-11-27 16:18:42 -06:00
parent 0bb6034f74
commit 6890893a24
3 changed files with 83 additions and 84 deletions

View File

@@ -120,7 +120,7 @@ public class MultipageCellLayout extends CellLayout {
}
@Override
public void copyCurrentStateToSolution(ItemConfiguration solution, boolean temp) {
public void copyCurrentStateToSolution(ItemConfiguration solution) {
int childCount = mShortcutsAndWidgets.getChildCount();
for (int i = 0; i < childCount; i++) {
View child = mShortcutsAndWidgets.getChildAt(i);