mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Merge "Clean up IllegalStateException for page pairing" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0c689ef773
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user