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

Commit 920be89b authored by Alex Chau's avatar Alex Chau
Browse files

Clean up IllegalStateException for page pairing

Fix: 198820019
Test: manual
Change-Id: Ic691f781b20d664c57a26370aae479ab68508303
parent 85da1db1
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();
            }