Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c689ef7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Clean up IllegalStateException for page pairing" into sc-v2-dev

parents c6bdd924 920be89b
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -651,14 +651,6 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
            if (isTwoPanelEnabled() && !(mDragSourceInternal.getParent() instanceof Hotseat)) {
                int pagePairScreenId = getScreenPair(dragObject.dragInfo.screenId);
                CellLayout pagePair = mWorkspaceScreens.get(pagePairScreenId);
                if (pagePair == null) {
                    // TODO: after http://b/198820019 is fixed, remove this
                    throw new IllegalStateException("Page pair is null, "
                            + "dragScreenId: " + dragObject.dragInfo.screenId
                            + ", pagePairScreenId: " + pagePairScreenId
                            + ", mScreenOrder: " + mScreenOrder.toConcatString()
                    );
                }
                dragSourceChildCount += pagePair.getShortcutsAndWidgets().getChildCount();
            }