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 committed 2023-11-27 16:36:44 -06:00
1 parent 0bb6034f74
commit 6890893a24
3 files changed
+83 -84

No files matched your search

@@ -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);