Remove odd screen ids when isTwoPanels is true

We where adding more CellLayouts but they where later
removed by removeExtraEmptyScreenDelayed but when rotated
the pagination animation is created before they are removed.

With this change the extra CellLayouts won't be added in the first
place.

Fix: 291822492
Test: RoerderWidgets
Test: FoldableItemsIntegrity
Change-Id: I561d2ce961a7ecc50f7a8c99c4acc44262b2e211
This commit is contained in:
Sebastian Franco committed 2023-08-18 12:51:00 -07:00
1 parent 173cf33ac1
commit ddd0450f6b
4 files changed
+41 -9

No files matched your search

@@ -63,8 +63,8 @@ public class CellLayoutTestCaseReader {
}
public static class Board extends TestSection {
Point gridSize;
String board;
public Point gridSize;
public String board;
public Board(Point gridSize, String board) {
super(State.BOARD);
@@ -127,7 +127,7 @@ public class CellLayoutTestCaseReader {
}
}
List<TestSection> parse() {
public List<TestSection> parse() {
List<TestSection> sections = new ArrayList<>();
String[] lines = mTest.split("\n");
Iterator<String> it = Arrays.stream(lines).iterator();