mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
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:
@@ -42,7 +42,7 @@ public class CellLayoutTestUtils {
|
||||
params.getCellX(), params.getCellY(),
|
||||
launcher.getWorkspace().getIdForScreen(cellLayout), CONTAINER_DESKTOP);
|
||||
int screenId = pos.screenId;
|
||||
if (screenId > boards.size() - 1) {
|
||||
for (int j = boards.size(); j <= screenId; j++) {
|
||||
boards.add(new CellLayoutBoard(cellLayout.getCountX(), cellLayout.getCountY()));
|
||||
}
|
||||
CellLayoutBoard board = boards.get(screenId);
|
||||
|
||||
Reference in New Issue
Block a user